summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorDaniel Xu <dxu@dxuuu.xyz>2022-09-07 19:40:38 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-09-11 03:27:32 +0300
commit896f07c07da01aa7cee820a23c2bce1d8e9fe1e6 (patch)
tree4b83688791a0467e437b4dbca9ed14466944e254 /tools/perf/scripts/python/bin/stackcollapse-report
parentd4f7bdb2ed7bf320a8772258fdc257655d225afb (diff)
downloadlinux-896f07c07da01aa7cee820a23c2bce1d8e9fe1e6.tar.xz
bpf: Use 0 instead of NOT_INIT for btf_struct_access() writes
Returning a bpf_reg_type only makes sense in the context of a BPF_READ. For writes, prefer to explicitly return 0 for clarity. Note that is non-functional change as it just so happened that NOT_INIT == 0. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz> Link: https://lore.kernel.org/r/01772bc1455ae16600796ac78c6cc9fff34f95ff.1662568410.git.dxu@dxuuu.xyz Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions