diff options
author | Xu Kuohai <[email protected]> | 2022-10-18 10:55:38 -0400 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-10-21 14:28:14 -0700 |
commit | d9740535b857650bd6211a67ac0c0d574cba1dce (patch) | |
tree | 901bf64f17d5db7d104d9537327414e93700c42b /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | eb814cf1adea0ce24413c26c22e9f1a556a45d34 (diff) |
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 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions