summaryrefslogtreecommitdiff
path: root/tools/perf/util/addr_location.c
blob: c73fc2aa236ceccfba11567372fb3d6b5d6ccaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-2.0
#include "addr_location.h"
#include "map.h"
#include "thread.h"

/*
 * The preprocess_sample method will return with reference counts for the
 * in it, when done using (and perhaps getting ref counts if needing to
 * keep a pointer to one of those entries) it must be paired with
 * addr_location__put(), so that the refcounts can be decremented.
 */
void addr_location__put(struct addr_location *al)
{
	map__zput(al->map);
	thread__zput(al->thread);
}