aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2017-05-08 15:55:39 -0700
committerLinus Torvalds <[email protected]>2017-05-08 17:15:11 -0700
commit4dbed76f2429516b9519620dacdda6c750640e8d (patch)
treea0abeaa3adc83ad547c06d7d12df12bbc7b3b329 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent0b523769ebb9473c60df1b0f70615aa82ebac2c9 (diff)
checkpatch: improve EMBEDDED_FUNCTION_NAME test
The existing behavior relies on patch context to identify function declarations. Add the ability to find function declarations when there is an open brace in column 1. This finds function declarations only in specific single line forms where the function name is on a single line like: int foo(args...) { and int foo(args...) { It does not recognize function declarations like: int foo(int bar, int baz) { Link: http://lkml.kernel.org/r/738d74bbbe1a06b80f11ed504818107c68903095.1488155636.git.joe@perches.com Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions