diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-18 11:19:03 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-18 11:19:03 -0400 |
| commit | 4d7b4ac22fbec1a03206c6cde353f2fd6942f828 (patch) | |
| tree | 2d96a9e9c28cf6fa628a278decc00ad55a8b043b /tools/perf/bench/sched-messaging.c | |
| parent | 3aaf51ace5975050ab43c7d4d7e439e0ae7d13d7 (diff) | |
| parent | 94f3ca95787ada3d64339a4ecb2754236ab563f6 (diff) | |
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (311 commits)
perf tools: Add mode to build without newt support
perf symbols: symbol inconsistency message should be done only at verbose=1
perf tui: Add explicit -lslang option
perf options: Type check all the remaining OPT_ variants
perf options: Type check OPT_BOOLEAN and fix the offenders
perf options: Check v type in OPT_U?INTEGER
perf options: Introduce OPT_UINTEGER
perf tui: Add workaround for slang < 2.1.4
perf record: Fix bug mismatch with -c option definition
perf options: Introduce OPT_U64
perf tui: Add help window to show key associations
perf tui: Make <- exit menus too
perf newt: Add single key shortcuts for zoom into DSO and threads
perf newt: Exit browser unconditionally when CTRL+C, q or Q is pressed
perf newt: Fix the 'A'/'a' shortcut for annotate
perf newt: Make <- exit the ui_browser
x86, perf: P4 PMU - fix counters management logic
perf newt: Make <- zoom out filters
perf report: Report number of events, not samples
perf hist: Clarify events_stats fields usage
...
Fix up trivial conflicts in kernel/fork.c and tools/perf/builtin-record.c
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 81cee78181fa..d1d1b30f99c1 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 | ||
