Files
linux/tools/perf/util/btf.h
T
Arnaldo Carvalho de Melo dcf900429d 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 <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: James Clark <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Namhyung Kim <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2024-12-09 17:52:41 -03:00

11 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