diff options
| author | Hou Tao <[email protected]> | 2021-12-10 22:16:49 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-12-11 17:40:23 -0800 |
| commit | c5fb19937455095573a19ddcbff32e993ed10e35 (patch) | |
| tree | 3b6d784c20323c61580a632867415377c4dd4205 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 259172bb6514758ce3be1610c500b51a9f44212a (diff) | |
bpf: Add bpf_strncmp helper
The helper compares two strings: one string is a null-terminated
read-only string, and another string has const max storage size
but doesn't need to be null-terminated. It can be used to compare
file name in tracing or LSM program.
Signed-off-by: Hou Tao <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions