mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +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 <[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]>
11 lines
269 B
C
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
|