diff options
| author | Xu Kuohai <[email protected]> | 2022-10-18 14:55:38 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-10-21 21:28:14 +0000 |
| commit | d9740535b857650bd6211a67ac0c0d574cba1dce (patch) | |
| tree | 901bf64f17d5db7d104d9537327414e93700c42b /scripts/bpf_doc.py | |
| parent | selftests/bpf: fix task_local_storage/exit_creds rcu usage (diff) | |
| download | kernel-d9740535b857650bd6211a67ac0c0d574cba1dce.tar.gz kernel-d9740535b857650bd6211a67ac0c0d574cba1dce.zip | |
libbpf: Avoid allocating reg_name with sscanf in parse_usdt_arg()
The reg_name in parse_usdt_arg() is used to hold register name, which
is short enough to be held in a 16-byte array, so we could define
reg_name as char reg_name[16] to avoid dynamically allocating reg_name
with sscanf.
Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Xu Kuohai <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
