All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] perf header: Fix a typo on evsel
@ 2012-09-06  2:10 Namhyung Kim
  2012-09-06  2:10 ` [PATCH 2/2] perf header: Prepare tracepoint events regardless of name Namhyung Kim
  2012-09-07  6:12 ` [tip:perf/core] perf header: Fix a typo on evsel tip-bot for Namhyung Kim
  0 siblings, 2 replies; 5+ messages in thread
From: Namhyung Kim @ 2012-09-06  2:10 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Peter Zijlstra, Paul Mackerras, Ingo Molnar, LKML, David Ahern,
	Namhyung Kim

From: Namhyung Kim <namhyung.kim@lge.com>

For checking return value of the strdup, 'event' should be 'evsel'.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 tools/perf/util/header.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 06ecd577d1b8..eb7a8da2f4f5 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -2512,7 +2512,7 @@ static int perf_evsel__set_tracepoint_name(struct perf_evsel *evsel,
 
 	snprintf(bf, sizeof(bf), "%s:%s", event->system, event->name);
 	evsel->name = strdup(bf);
-	if (event->name == NULL)
+	if (evsel->name == NULL)
 		return -1;
 
 	evsel->tp_format = event;
-- 
1.7.11.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-07  6:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06  2:10 [PATCH 1/2] perf header: Fix a typo on evsel Namhyung Kim
2012-09-06  2:10 ` [PATCH 2/2] perf header: Prepare tracepoint events regardless of name Namhyung Kim
2012-09-06 13:51   ` Arnaldo Carvalho de Melo
2012-09-07  6:12   ` [tip:perf/core] " tip-bot for Namhyung Kim
2012-09-07  6:12 ` [tip:perf/core] perf header: Fix a typo on evsel tip-bot for Namhyung Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.