diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/bpf_lock_contention.c | 3 | ||||
-rw-r--r-- | tools/perf/util/lock-contention.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/bpf_lock_contention.c b/tools/perf/util/bpf_lock_contention.c index f5e2b4f19a72..0556cf4469ff 100644 --- a/tools/perf/util/bpf_lock_contention.c +++ b/tools/perf/util/bpf_lock_contention.c @@ -40,6 +40,9 @@ int lock_contention_prepare(struct lock_contention *con) return -1; } + bpf_map__set_max_entries(skel->maps.stacks, con->map_nr_entries); + bpf_map__set_max_entries(skel->maps.lock_stat, con->map_nr_entries); + if (target__has_cpu(target)) ncpus = perf_cpu_map__nr(evlist->core.user_requested_cpus); if (target__has_task(target)) diff --git a/tools/perf/util/lock-contention.h b/tools/perf/util/lock-contention.h index a0df5308cca4..8de8550f5ef8 100644 --- a/tools/perf/util/lock-contention.h +++ b/tools/perf/util/lock-contention.h @@ -112,6 +112,7 @@ struct lock_contention { struct target *target; struct machine *machine; struct hlist_head *result; + unsigned long map_nr_entries; }; #ifdef HAVE_BPF_SKEL |