perf bpf: Add defines for map insertion/lookup
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 6 Nov 2018 18:46:27 +0000 (15:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Nov 2018 15:00:31 +0000 (12:00 -0300)
commit382b55dbef6b68e3fef2fd8a438fbaff57695308
tree260e7daaa4c1ed673abb7adb0442a3a3bb032f2a
parent66067538e0425beca98e1bee55a357f3869a0e31
perf bpf: Add defines for map insertion/lookup

Starting with a helper for a basic pid_map(), a hash using a pid as a
key.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-gdwvq53wltvq6b3g5tdmh0cw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/include/bpf/bpf.h