summaryrefslogtreecommitdiffstats
path: root/lib/list_debug.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-07-06 11:06:25 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-08 15:35:43 +0200
commitd7ff34d5fb5a2f6722786863c4afa79c51f8edf2 (patch)
treea3ff890eaa896d7a5da5a87b8cae2f48c7eb184f /lib/list_debug.c
parentfb84b8224655309e7d38f989e426b82a4543f115 (diff)
downloadblackbird-op-linux-d7ff34d5fb5a2f6722786863c4afa79c51f8edf2.tar.gz
blackbird-op-linux-d7ff34d5fb5a2f6722786863c4afa79c51f8edf2.zip
libbpf: auto-set PERF_EVENT_ARRAY size to number of CPUs
For BPF_MAP_TYPE_PERF_EVENT_ARRAY typically correct size is number of possible CPUs. This is impossible to specify at compilation time. This change adds automatic setting of PERF_EVENT_ARRAY size to number of system CPUs, unless non-zero size is specified explicitly. This allows to adjust size for advanced specific cases, while providing convenient and logical defaults. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud