.. | .. |
---|
6 | 6 | #define SBUILD_ID_SIZE (BUILD_ID_SIZE * 2 + 1) |
---|
7 | 7 | |
---|
8 | 8 | #include "tool.h" |
---|
9 | | -#include "namespaces.h" |
---|
10 | 9 | #include <linux/types.h> |
---|
| 10 | + |
---|
| 11 | +struct build_id { |
---|
| 12 | + u8 data[BUILD_ID_SIZE]; |
---|
| 13 | + size_t size; |
---|
| 14 | +}; |
---|
| 15 | + |
---|
| 16 | +struct nsinfo; |
---|
11 | 17 | |
---|
12 | 18 | extern struct perf_tool build_id__mark_dso_hit_ops; |
---|
13 | 19 | struct dso; |
---|
14 | 20 | struct feat_fd; |
---|
15 | 21 | |
---|
16 | | -int build_id__sprintf(const u8 *build_id, int len, char *bf); |
---|
| 22 | +void build_id__init(struct build_id *bid, const u8 *data, size_t size); |
---|
| 23 | +int build_id__sprintf(const struct build_id *build_id, char *bf); |
---|
17 | 24 | int sysfs__sprintf_build_id(const char *root_dir, char *sbuild_id); |
---|
18 | 25 | int filename__sprintf_build_id(const char *pathname, char *sbuild_id); |
---|
19 | 26 | char *build_id_cache__kallsyms_path(const char *sbuild_id, char *bf, |
---|
.. | .. |
---|
23 | 30 | bool is_debug); |
---|
24 | 31 | |
---|
25 | 32 | int build_id__mark_dso_hit(struct perf_tool *tool, union perf_event *event, |
---|
26 | | - struct perf_sample *sample, struct perf_evsel *evsel, |
---|
| 33 | + struct perf_sample *sample, struct evsel *evsel, |
---|
27 | 34 | struct machine *machine); |
---|
28 | 35 | |
---|
29 | 36 | int dsos__hit_all(struct perf_session *session); |
---|
30 | 37 | |
---|
| 38 | +int perf_event__inject_buildid(struct perf_tool *tool, union perf_event *event, |
---|
| 39 | + struct perf_sample *sample, struct evsel *evsel, |
---|
| 40 | + struct machine *machine); |
---|
| 41 | + |
---|
31 | 42 | bool perf_session__read_build_ids(struct perf_session *session, bool with_hits); |
---|
32 | 43 | int perf_session__write_buildid_table(struct perf_session *session, |
---|
33 | 44 | struct feat_fd *fd); |
---|