]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf btf: Make the sigtrap test helper to find a member by name widely available
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Dec 2024 19:00:39 +0000 (16:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Dec 2024 20:52:41 +0000 (17:52 -0300)
commitdcf900429d1e7c9b528e3e4682d0255003ab7be3
tree324a44eb9917ef8d795b166ceefffd48ec5d9d3d
parentbfb946753550d8d5f5bd5a156e4413c3df359faa
perf btf: Make the sigtrap test helper to find a member by name widely available

By introducing a tools/perf/util/btf.c to collect utilities not yet
available via libbpf, the first being a way to find a member by name
once we get the type_id for the struct.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/sigtrap.c
tools/perf/util/Build
tools/perf/util/btf.c [new file with mode: 0644]
tools/perf/util/btf.h [new file with mode: 0644]