aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <[email protected]>2023-07-11 23:15:48 +0900
committerMasami Hiramatsu (Google) <[email protected]>2023-07-14 00:37:00 +0900
commite38e2c6a9efc435f9de344b7c91f7697e01b47d5 (patch)
treeda49c4b1e13b3595ea0e5d8acc3efda861d9265c /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parentb41326b5e0f82e93592c4366359917b5d67b529f (diff)
tracing/probes: Fix to update dynamic data counter if fetcharg uses it
Fix to update dynamic data counter ('dyndata') and max length ('maxlen') only if the fetcharg uses the dynamic data. Also get out arg->dynamic from unlikely(). This makes dynamic data address wrong if process_fetch_insn() returns error on !arg->dynamic case. Link: https://lore.kernel.org/all/168908494781.123124.8160245359962103684.stgit@devnote2/ Suggested-by: Steven Rostedt <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Fixes: 9178412ddf5a ("tracing: probeevent: Return consumed bytes of dynamic area") Cc: [email protected] Signed-off-by: Masami Hiramatsu (Google) <[email protected]> Reviewed-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions