diff options
author | Florian Lehner <[email protected]> | 2020-10-29 21:14:42 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-11-05 20:04:46 -0800 |
commit | c6bde958a62b8ca5ee8d2c1fe429aec4ad54efad (patch) | |
tree | 17958546d169d9eb0989cb96ff10446fe2fd24c5 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | b6b466a81f84e02f5d57a641db16ee3f24388923 (diff) |
bpf: Lift hashtab key_size limit
Currently key_size of hashtab is limited to MAX_BPF_STACK.
As the key of hashtab can also be a value from a per cpu map it can be
larger than MAX_BPF_STACK.
The use-case for this patch originates to implement allow/disallow
lists for files and file paths. The maximum length of file paths is
defined by PATH_MAX with 4096 chars including nul.
This limit exceeds MAX_BPF_STACK.
Changelog:
v5:
- Fix cast overflow
v4:
- Utilize BPF skeleton in tests
- Rebase
v3:
- Rebase
v2:
- Add a test for bpf side
Signed-off-by: Florian Lehner <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions