diff options
| author | Eduard Zingerman <eddyz87@gmail.com> | 2026-02-28 13:47:57 -0500 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-03-03 08:47:23 -0800 |
| commit | 69ca55e63101001997c960abdce35869102577c2 (patch) | |
| tree | 86318184b48ef4839a9cbaed4d4432f191bd8f7f /tools/perf/scripts/python/stackcollapse.py | |
| parent | 63ec29623943bd55fa026017a93b2d739fcdbb32 (diff) | |
bpf: extract check_global_subprog_return_code() for clarity
From: Eduard Zingerman <eddyz87@gmail.com>
Both main progs and subprogs use the same function in the verifier,
check_return_code, to verify the type and value range of the register
being returned. However, subprogs only need a subset of the logic in
check_return_code. this also goes the way - check_return_code explicitly
checks whether it is handling a subprogram in multiple places, complicating
the logic. Separate the handling of the two into separate functions.
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260228184759.108145-4-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
