diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2018-05-24 11:17:34 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-06-04 10:28:50 -0300 |
commit | f622df5ed768ce7c049af99196c1b7b0a2c0d385 (patch) | |
tree | 41ca2747fea910e98af63ae49cad620b941f900d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 4f5aeecd0d1233cbd0ccd60f4d6701404884471a (diff) |
perf probe: Use return of map__get() to make code more compact
The __get() idiom returns a reference count for the object passed, i.e.
all functions of this type return the object passed, so take advantage
of that to make the code more compact.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions