1 // SPDX-License-Identifier: GPL-2.0
2 #include "addr_location.h"
7 void addr_location__init(struct addr_location
*al
)
23 * The preprocess_sample method will return with reference counts for the
24 * in it, when done using (and perhaps getting ref counts if needing to
25 * keep a pointer to one of those entries) it must be paired with
26 * addr_location__put(), so that the refcounts can be decremented.
28 void addr_location__exit(struct addr_location
*al
)
31 thread__zput(al
->thread
);
35 void addr_location__copy(struct addr_location
*dst
, struct addr_location
*src
)
37 thread__put(dst
->thread
);
41 dst
->thread
= thread__get(src
->thread
);
42 dst
->maps
= maps__get(src
->maps
);
43 dst
->map
= map__get(src
->map
);