diff options
author | Ian Rogers <[email protected]> | 2023-06-22 21:31:07 -0700 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2023-06-22 22:13:13 -0700 |
commit | 33941dbd14da4eac40a26ac5fd5f84e1842ffc3a (patch) | |
tree | b25907104931d783a499a2df67375adc16379cde /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | e4ef3ef1bc0a3d2535427da78b8095ef657eb474 (diff) |
perf unwind: Fix map reference counts
The result of thread__find_map is the map in the passed in
addr_location. Calling addr_location__exit puts that map and so copies
need to do a map__get. Add in the corresponding map__puts.
v2. Add missing map__put when dso is missing.
Signed-off-by: Ian Rogers <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ivan Babrou <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions