diff options
| author | Menglong Dong <menglong8.dong@gmail.com> | 2026-01-24 14:19:57 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-01-24 18:49:35 -0800 |
| commit | f1b56b3cbdb2d2a51d8ea91008eddf4d1d9f277b (patch) | |
| tree | 278c3302c1a897f73434ebc772ef57d7ec1472e4 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 2d419c44658f75e7655794341a95c0687830f3df (diff) | |
bpf: use the least significant byte for the nr_args in trampoline
For now, ((u64 *)ctx)[-1] is used to store the nr_args in the trampoline.
However, 1 byte is enough to store such information. Therefore, we use
only the least significant byte of ((u64 *)ctx)[-1] to store the nr_args,
and reserve the rest for other usages.
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20260124062008.8657-3-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
