diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-09-17 04:34:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-17 18:30:25 -0400 |
commit | 270bbbe80d82fad8b698d0b407eb3ad67cc3492b (patch) | |
tree | 4eb7f492e58bad126276682993a2fb4ca416bd23 /tools/perf | |
parent | 6706ccf8e776e51e38ffa89fe7dd20e80eb1e860 (diff) |
perf tools: Increase MAX_EVENT_LENGTH
The name length of some trace events is longer than 30, like
sys_enter_sched_get_priority_max and
ext4_mb_discard_preallocations.
Passing those events to perf-record will fail, try:
# ./perf record -f -e syscalls:sys_enter_sched_get_priority_max -F 1 -a
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4AB1F4AB.7050205@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/parse-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 034245e46817..910283cbbc8f 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -145,7 +145,7 @@ static int tp_event_has_id(struct dirent *sys_dir, struct dirent *evt_dir) | |||
145 | (strcmp(evt_dirent.d_name, "..")) && \ | 145 | (strcmp(evt_dirent.d_name, "..")) && \ |
146 | (!tp_event_has_id(&sys_dirent, &evt_dirent))) | 146 | (!tp_event_has_id(&sys_dirent, &evt_dirent))) |
147 | 147 | ||
148 | #define MAX_EVENT_LENGTH 30 | 148 | #define MAX_EVENT_LENGTH 512 |
149 | 149 | ||
150 | int valid_debugfs_mount(const char *debugfs) | 150 | int valid_debugfs_mount(const char *debugfs) |
151 | { | 151 | { |