aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2010-02-22 16:14:22 -0300
committerIngo Molnar <[email protected]>2010-02-25 12:26:16 +0100
commitc7ad21af2c8b7accb893a576b100296c61c5d610 (patch)
tree8f12dbcd9f6b2227e7d2c1e05cc9729c27433e60 /tools/perf/scripts/python/check-perf-trace.py
parent37fe5fcb7a5b5235c8b71bf5469ce4c7246e3fab (diff)
perf top: Use a macro instead of a constant variable
To overcome a silly gcc warning: cc1: warnings being treated as errors builtin-top.c: In function ‘lookup_sym_source’: builtin-top.c:291: warning: not protecting local variables: variable length buffer make: *** [builtin-top.o] Error 1 make: *** Waiting for unfinished jobs.... That is emitted for this: const size_t pattern_len = BITS_PER_LONG / 4 + 2; char pattern[pattern_len + 1]; Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Frédéric Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> LKML-Reference: <[email protected]> [ -v2: macroify the naming style ] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions