|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 03 of 12] xenpaging: remove srand call
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307437211 -7200
# Node ID e2480aad3a3bd4e801bd79daf1b6ee77efe1ed7c
# Parent d22489c1b10a7fd17fca635d0a29dc774cf97bf3
xenpaging: remove srand call
The policy uses now a linear algorithm instead of a random one.
Remove the call to srand().
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r d22489c1b10a -r e2480aad3a3b tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c Tue Jun 07 11:00:10 2011 +0200
+++ b/tools/xenpaging/xenpaging.c Tue Jun 07 11:00:11 2011 +0200
@@ -544,9 +544,6 @@ int main(int argc, char *argv[])
domain_id = atoi(argv[1]);
num_pages = atoi(argv[2]);
- /* Seed random-number generator */
- srand(time(NULL));
-
/* Initialise domain paging */
paging = xenpaging_init(domain_id);
if ( paging == NULL )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 12] xenpaging fixes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 01 of 12] xenpaging: correct dropping of pages to avoid full ring buffer, Olaf Hering
- [Xen-devel] [PATCH 03 of 12] xenpaging: remove srand call,
Olaf Hering <=
- [Xen-devel] [PATCH 04 of 12] xenpaging: remove return values from functions that can not fail, Olaf Hering
- [Xen-devel] [PATCH 05 of 12] xenpaging: catch xc_mem_paging_resume errors, Olaf Hering
- [Xen-devel] [PATCH 06 of 12] xenpaging: remove local domain_id variable, Olaf Hering
- [Xen-devel] [PATCH 08 of 12] xenpaging: start paging in the middle of gfn range, Olaf Hering
- [Xen-devel] [PATCH 07 of 12] xenpaging: move num_pages into xenpaging struct, Olaf Hering
- [Xen-devel] [PATCH 09 of 12] xenpaging: pass integer to xenpaging_populate_page, Olaf Hering
- [Xen-devel] [PATCH 11 of 12] xenpaging: add watch thread to catch guest shutdown, Olaf Hering
- [Xen-devel] [PATCH 10 of 12] xenpaging: add helper function for unlinking pagefile, Olaf Hering
|
|
|
|
|