diff options
Diffstat (limited to 'tools/perf/bench/sched-messaging.c')
-rw-r--r-- | tools/perf/bench/sched-messaging.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c index 81cee78181f..d1d1b30f99c 100644 --- a/tools/perf/bench/sched-messaging.c +++ b/tools/perf/bench/sched-messaging.c | |||
@@ -31,9 +31,9 @@ | |||
31 | 31 | ||
32 | #define DATASIZE 100 | 32 | #define DATASIZE 100 |
33 | 33 | ||
34 | static int use_pipes = 0; | 34 | static bool use_pipes = false; |
35 | static unsigned int loops = 100; | 35 | static unsigned int loops = 100; |
36 | static unsigned int thread_mode = 0; | 36 | static bool thread_mode = false; |
37 | static unsigned int num_groups = 10; | 37 | static unsigned int num_groups = 10; |
38 | 38 | ||
39 | struct sender_context { | 39 | struct sender_context { |
@@ -256,10 +256,8 @@ static const struct option options[] = { | |||
256 | "Use pipe() instead of socketpair()"), | 256 | "Use pipe() instead of socketpair()"), |
257 | OPT_BOOLEAN('t', "thread", &thread_mode, | 257 | OPT_BOOLEAN('t', "thread", &thread_mode, |
258 | "Be multi thread instead of multi process"), | 258 | "Be multi thread instead of multi process"), |
259 | OPT_INTEGER('g', "group", &num_groups, | 259 | OPT_UINTEGER('g', "group", &num_groups, "Specify number of groups"), |
260 | "Specify number of groups"), | 260 | OPT_UINTEGER('l', "loop", &loops, "Specify number of loops"), |
261 | OPT_INTEGER('l', "loop", &loops, | ||
262 | "Specify number of loops"), | ||
263 | OPT_END() | 261 | OPT_END() |
264 | }; | 262 | }; |
265 | 263 | ||