Skip to contentSkip to conversation

perf tool: don't open-code TEST_EVENTS macro

PATCH In review Ramkumar Ramachandra 1 participant 2 messages Oct 6, 2013 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tool: don't open-code TEST_EVENTS macro

The TEST_EVENTS macro is open-coded towards the end of test__parse_events(). While at it, undef it cleanly after its usage.

Cc Robert Richter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
---
 tools/perf/tests/parse-events.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/perf/tests/parse-events.c +3 -3
index 48114d1..a6f51ff 100644
@@ -1531,9 +1531,9 @@ do {							\
 			return ret;
 	}
 
-	ret1 = test_terms(test__terms, ARRAY_SIZE(test__terms));
-	if (!ret2)
-		ret2 = ret1;
+	TEST_EVENTS(test__terms);
+
+#undef TEST_EVENTS
 
 	return ret2;
 }
Signature · 1 line
1.8.4.477.g5d89aa9
#1 lore raw
Quoted 2 lines · Ramkumar Ramachandra

The TEST_EVENTS macro is open-coded towards the end of test__parse_events(). While at it, undef it cleanly after its usage.

Kindly ignore this patch; I made a trivial mistake.