diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-06-02 14:21:06 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-06-06 18:18:55 -0300 |
commit | 53897a78ca6d4bd64e8c17d76cfec65d237f9447 (patch) | |
tree | 10cd769f2e67012fde24dda86ec720416d599d34 /tools/perf/scripts/python/bin/syscall-counts-by-pid-record | |
parent | 009ad5d5945697a887f0c1b2d581503d92dcde6f (diff) |
tools lib bpf: Use IS_ERR() reporting macros with bpf_map__get_def()
And for consistency, rename it to bpf_map__def(), leaving "get" for
reference counting.
Also make it return a const pointer, as suggested by Wang.
Acked-by: Wang Nan <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Milian Wolff <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-by-pid-record')
0 files changed, 0 insertions, 0 deletions