]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
perf bpf: Add bpf_map() helper
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 Jan 2019 14:01:46 +0000 (15:01 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Jan 2019 14:12:10 +0000 (15:12 +0100)
commitb45d5511aa9029264740e2353ad7faf3cd444703
tree66c5e8072207ff610159e1e3bfd131477c67e584
parent35ea7e4bbb89ecd32057f5f6a2a8feb0d7224e51
perf bpf: Add bpf_map() helper

To make the declaration of maps more compact, the following patches will
make use of it.

Standardizing on it will allow to add the BTF details, i.e.
BPF_ANNOTATE_KV_PAIR() (tools/testing/selftests/bpf/bpf_helpers.h)
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-h3q9rxxkbzetgnbro5rclqft@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/include/bpf/bpf.h