build-id.h (ef434a0c2ce765ad33026375db7d23aebd5e9532) | build-id.h (f045b8c4b36baddcfbdd4d3d956446e688b0b3cd) |
---|---|
1#ifndef PERF_BUILD_ID_H_ 2#define PERF_BUILD_ID_H_ 1 3 4#define BUILD_ID_SIZE 20 5#define SBUILD_ID_SIZE (BUILD_ID_SIZE * 2 + 1) 6 7#include "tool.h" | 1#ifndef PERF_BUILD_ID_H_ 2#define PERF_BUILD_ID_H_ 1 3 4#define BUILD_ID_SIZE 20 5#define SBUILD_ID_SIZE (BUILD_ID_SIZE * 2 + 1) 6 7#include "tool.h" |
8#include "namespaces.h" |
|
8#include <linux/types.h> 9 10extern struct perf_tool build_id__mark_dso_hit_ops; 11struct dso; 12 13int build_id__sprintf(const u8 *build_id, int len, char *bf); 14int sysfs__sprintf_build_id(const char *root_dir, char *sbuild_id); 15int filename__sprintf_build_id(const char *pathname, char *sbuild_id); --- 10 unchanged lines hidden (view full) --- 26 27bool perf_session__read_build_ids(struct perf_session *session, bool with_hits); 28int perf_session__write_buildid_table(struct perf_session *session, int fd); 29int perf_session__cache_build_ids(struct perf_session *session); 30 31char *build_id_cache__origname(const char *sbuild_id); 32char *build_id_cache__linkname(const char *sbuild_id, char *bf, size_t size); 33char *build_id_cache__cachedir(const char *sbuild_id, const char *name, | 9#include <linux/types.h> 10 11extern struct perf_tool build_id__mark_dso_hit_ops; 12struct dso; 13 14int build_id__sprintf(const u8 *build_id, int len, char *bf); 15int sysfs__sprintf_build_id(const char *root_dir, char *sbuild_id); 16int filename__sprintf_build_id(const char *pathname, char *sbuild_id); --- 10 unchanged lines hidden (view full) --- 27 28bool perf_session__read_build_ids(struct perf_session *session, bool with_hits); 29int perf_session__write_buildid_table(struct perf_session *session, int fd); 30int perf_session__cache_build_ids(struct perf_session *session); 31 32char *build_id_cache__origname(const char *sbuild_id); 33char *build_id_cache__linkname(const char *sbuild_id, char *bf, size_t size); 34char *build_id_cache__cachedir(const char *sbuild_id, const char *name, |
34 bool is_kallsyms, bool is_vdso); | 35 struct nsinfo *nsi, bool is_kallsyms, 36 bool is_vdso); |
35 36struct strlist; 37 38struct strlist *build_id_cache__list_all(bool validonly); 39char *build_id_cache__complement(const char *incomplete_sbuild_id); | 37 38struct strlist; 39 40struct strlist *build_id_cache__list_all(bool validonly); 41char *build_id_cache__complement(const char *incomplete_sbuild_id); |
40int build_id_cache__list_build_ids(const char *pathname, | 42int build_id_cache__list_build_ids(const char *pathname, struct nsinfo *nsi, |
41 struct strlist **result); 42bool build_id_cache__cached(const char *sbuild_id); 43int build_id_cache__add_s(const char *sbuild_id, | 43 struct strlist **result); 44bool build_id_cache__cached(const char *sbuild_id); 45int build_id_cache__add_s(const char *sbuild_id, |
44 const char *name, bool is_kallsyms, bool is_vdso); | 46 const char *name, struct nsinfo *nsi, 47 bool is_kallsyms, bool is_vdso); |
45int build_id_cache__remove_s(const char *sbuild_id); 46 47extern char buildid_dir[]; 48 49void set_buildid_dir(const char *dir); 50void disable_buildid_cache(void); 51 52#endif | 48int build_id_cache__remove_s(const char *sbuild_id); 49 50extern char buildid_dir[]; 51 52void set_buildid_dir(const char *dir); 53void disable_buildid_cache(void); 54 55#endif |