aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2016-07-13 06:44:03 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-13 22:09:03 -0400
commit8c619d6a333f98087816e64c62f0f2389e19ab4a (patch)
tree561038ef8e058dce94c1bdee621124bc49c6c052 /tools/perf/util/parse-events.c
parent705fa2190dfb3d02f83adcd1abdb4e7dc3434597 (diff)
perf event parser: Add const qualifier to evt_name and sys_name
Add missing 'const' qualifiers so following commits are able to create tracepoints using const strings. Signed-off-by: Wang Nan <wangnan0@huawei.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1468406646-21642-4-git-send-email-wangnan0@huawei.com 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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index ebd87b773f56..d866824f2b42 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -436,7 +436,7 @@ int parse_events_add_cache(struct list_head *list, int *idx,
436} 436}
437 437
438static void tracepoint_error(struct parse_events_error *e, int err, 438static void tracepoint_error(struct parse_events_error *e, int err,
439 char *sys, char *name) 439 const char *sys, const char *name)
440{ 440{
441 char help[BUFSIZ]; 441 char help[BUFSIZ];
442 442
@@ -466,7 +466,7 @@ static void tracepoint_error(struct parse_events_error *e, int err,
466} 466}
467 467
468static int add_tracepoint(struct list_head *list, int *idx, 468static int add_tracepoint(struct list_head *list, int *idx,
469 char *sys_name, char *evt_name, 469 const char *sys_name, const char *evt_name,
470 struct parse_events_error *err, 470 struct parse_events_error *err,
471 struct list_head *head_config) 471 struct list_head *head_config)
472{ 472{
@@ -491,7 +491,7 @@ static int add_tracepoint(struct list_head *list, int *idx,
491} 491}
492 492
493static int add_tracepoint_multi_event(struct list_head *list, int *idx, 493static int add_tracepoint_multi_event(struct list_head *list, int *idx,
494 char *sys_name, char *evt_name, 494 const char *sys_name, const char *evt_name,
495 struct parse_events_error *err, 495 struct parse_events_error *err,
496 struct list_head *head_config) 496 struct list_head *head_config)
497{ 497{
@@ -533,7 +533,7 @@ static int add_tracepoint_multi_event(struct list_head *list, int *idx,
533} 533}
534 534
535static int add_tracepoint_event(struct list_head *list, int *idx, 535static int add_tracepoint_event(struct list_head *list, int *idx,
536 char *sys_name, char *evt_name, 536 const char *sys_name, const char *evt_name,
537 struct parse_events_error *err, 537 struct parse_events_error *err,
538 struct list_head *head_config) 538 struct list_head *head_config)
539{ 539{
@@ -545,7 +545,7 @@ static int add_tracepoint_event(struct list_head *list, int *idx,
545} 545}
546 546
547static int add_tracepoint_multi_sys(struct list_head *list, int *idx, 547static int add_tracepoint_multi_sys(struct list_head *list, int *idx,
548 char *sys_name, char *evt_name, 548 const char *sys_name, const char *evt_name,
549 struct parse_events_error *err, 549 struct parse_events_error *err,
550 struct list_head *head_config) 550 struct list_head *head_config)
551{ 551{
@@ -1126,7 +1126,7 @@ do { \
1126} 1126}
1127 1127
1128int parse_events_add_tracepoint(struct list_head *list, int *idx, 1128int parse_events_add_tracepoint(struct list_head *list, int *idx,
1129 char *sys, char *event, 1129 const char *sys, const char *event,
1130 struct parse_events_error *err, 1130 struct parse_events_error *err,
1131 struct list_head *head_config) 1131 struct list_head *head_config)
1132{ 1132{