perf augmented_raw_syscalls: Use bpf_map()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 Jan 2019 14:17:23 +0000 (15:17 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Jan 2019 14:12:10 +0000 (15:12 +0100)
commit56d8175a4d05ed31fe9c3053a83a5f8e08a284ee
tree6c58bb0ae90562190c1f9d5bb889445113fe4b72
parentc657d76f9fb8379cc847d09f1448e4ac151790c7
perf augmented_raw_syscalls: Use bpf_map()

To make the code more compact and also paving the way to have the BTF
annotation to be done transparently.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Yonghong Song <yhs@fb.com>
Link: https://lkml.kernel.org/n/tip-pjlf38sv3i1hbn5vzkr4y3ol@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/examples/bpf/augmented_raw_syscalls.c