mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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>
10 lines
269 B
C
10 lines
269 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __PERF_UTIL_BTF
|
|
#define __PERF_UTIL_BTF 1
|
|
|
|
struct btf;
|
|
struct btf_member;
|
|
|
|
const struct btf_member *__btf_type__find_member_by_name(struct btf *btf,
|
|
int type_id, const char *member_name);
|
|
#endif // __PERF_UTIL_BTF
|