perf tool: don't open-code TEST_EVENTS macro
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]>
Signed-off-by Ramkumar Ramachandra <[email protected]>
--- tools/perf/tests/parse-events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tools/perf/tests/parse-events.c +3 -3
@@ -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_EVENTSreturn ret2; }
Signature · 1 line
1.8.4.477.g5d89aa9
Quoted 2 lines · Ramkumar Ramachandra
The
TEST_EVENTSmacro is open-coded towards the end oftest__parse_events(). While at it, undef it cleanly after its usage.
Kindly ignore this patch; I made a trivial mistake.