diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-06-12 12:55:13 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-06-19 12:06:21 -0400 |
commit | 22c8b84320ecf9ecbb6587d46a259b828e9ece5e (patch) | |
tree | 73b58508b4f6beecf8e5308ff48764e68d00c2aa /tools/perf/builtin-sched.c | |
parent | 5bff01f66db1753abcae03a06b21e56e7e9d9fa9 (diff) |
perf tools: Don't access evsel->name directly
One needs to use perf_evsel__name() so that if needed the name gets
synthesized and stored in evsel->name, from where perf_evsel__name()
will serve from them on.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ml7zbenjmri9bghmrea0jm0d@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r-- | tools/perf/builtin-sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index b125e07eb399..9fe77b185338 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -1601,7 +1601,7 @@ static int perf_sched__process_tracepoint_sample(struct perf_tool *tool, | |||
1601 | 1601 | ||
1602 | if (thread == NULL) { | 1602 | if (thread == NULL) { |
1603 | pr_debug("problem processing %s event, skipping it.\n", | 1603 | pr_debug("problem processing %s event, skipping it.\n", |
1604 | evsel->name); | 1604 | perf_evsel__name(evsel)); |
1605 | return -1; | 1605 | return -1; |
1606 | } | 1606 | } |
1607 | 1607 | ||