projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a886de
)
perf bpf: Switch to new btf__raw_data API
author
Hengqi Chen
<hengqi.chen@gmail.com>
Fri, 22 Oct 2021 13:06:20 +0000
(21:06 +0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Fri, 22 Oct 2021 23:09:14 +0000
(16:09 -0700)
Replace the call to btf__get_raw_data with new API btf__raw_data.
The old APIs will be deprecated in libbpf v0.7+. No functionality
change.
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20211022130623.1548429-3-hengqi.chen@gmail.com
tools/perf/util/bpf-event.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/bpf-event.c
b/tools/perf/util/bpf-event.c
index
1a7112a
..
388847b
100644
(file)
--- a/
tools/perf/util/bpf-event.c
+++ b/
tools/perf/util/bpf-event.c
@@
-110,7
+110,7
@@
static int perf_env__fetch_btf(struct perf_env *env,
u32 data_size;
const void *data;
- data = btf__
get_
raw_data(btf, &data_size);
+ data = btf__raw_data(btf, &data_size);
node = malloc(data_size + sizeof(struct btf_node));
if (!node)