summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-03-22 15:09:08 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-03-22 15:09:08 -0300
commit0d09eb7a9a2ca4d7ed32f7b440bea78c0622814a (patch)
tree177871323b183610017c65c68f0bde9af2f37f47 /tools/perf/util/parse-events.c
parent9521d830b6341d1887dcfc2aebde23fbfa5f1473 (diff)
parent89c5bd08df5841326abbf167d136bcf14cf759ed (diff)
downloadop-kernel-dev-0d09eb7a9a2ca4d7ed32f7b440bea78c0622814a.zip
op-kernel-dev-0d09eb7a9a2ca4d7ed32f7b440bea78c0622814a.tar.gz
Merge branch 'perf/urgent' into perf/core
Merge Reason: to pick the fix: commit e7f01d1 perf tools: Use scnprintf where applicable Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r--tools/perf/util/parse-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index bec1cc6..201b40f 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -165,7 +165,7 @@ struct tracepoint_path *tracepoint_id_to_path(u64 config)
struct tracepoint_path *path = NULL;
DIR *sys_dir, *evt_dir;
struct dirent *sys_next, *evt_next, sys_dirent, evt_dirent;
- char id_buf[4];
+ char id_buf[24];
int fd;
u64 id;
char evt_path[MAXPATHLEN];
OpenPOWER on IntegriCloud