Home
last modified time | relevance | path

Searched refs:buildid (Results 1 – 12 of 12) sorted by relevance

/external/perf_data_converter/src/quipper/
Ddso_test.cc35 string buildid; in TEST() local
36 EXPECT_TRUE(ReadElfBuildId(elf.path(), &buildid)); in TEST()
37 EXPECT_EQ(expected_buildid, buildid); in TEST()
42 EXPECT_TRUE(ReadElfBuildId(elf.path(), &buildid)); in TEST()
43 EXPECT_EQ(expected_buildid, buildid); in TEST()
46 EXPECT_TRUE(ReadElfBuildId(elf.path(), &buildid)); in TEST()
47 EXPECT_EQ(expected_buildid, buildid); in TEST()
56 string buildid; in TEST() local
57 EXPECT_FALSE(ReadElfBuildId(elf.path(), &buildid)); in TEST()
66 string buildid; in TEST() local
[all …]
Ddso.cc61 bool GetBuildID(Elf *elf, string *buildid) { in GetBuildID() argument
90 *buildid = desc; in GetBuildID()
105 bool ReadElfBuildId(const string &filename, string *buildid) { in ReadElfBuildId() argument
111 bool ret = ReadElfBuildId(fd, buildid); in ReadElfBuildId()
116 bool ReadElfBuildId(int fd, string *buildid) { in ReadElfBuildId() argument
126 bool err = GetBuildID(elf, buildid); in ReadElfBuildId()
134 bool ReadModuleBuildId(const string &module_name, string *buildid) { in ReadModuleBuildId() argument
141 return ReadBuildIdNote(&file, buildid); in ReadModuleBuildId()
144 bool ReadBuildIdNote(DataReader *data, string *buildid) { in ReadBuildIdNote() argument
156 *buildid = desc; in ReadBuildIdNote()
Ddso_android.cc30 bool ReadElfBuildId(const string &filename, string *buildid) { in ReadElfBuildId() argument
34 *buildid = id.ToString(); in ReadElfBuildId()
40 bool ReadElfBuildId(int fd, string *buildid) { in ReadElfBuildId() argument
46 bool ReadModuleBuildId(const string &module_name, string *buildid) { in ReadModuleBuildId() argument
53 return ReadBuildIdNote(&file, buildid); in ReadModuleBuildId()
56 bool ReadBuildIdNote(DataReader *data, string *buildid) { in ReadBuildIdNote() argument
69 *buildid = desc; in ReadBuildIdNote()
Ddso.h40 bool ReadElfBuildId(const string& filename, string* buildid);
41 bool ReadElfBuildId(int fd, string* buildid);
45 bool ReadModuleBuildId(const string& module_name, string* buildid);
47 bool ReadBuildIdNote(DataReader* data, string* buildid);
Ddso_test_utils.cc76 void WriteElfWithBuildid(string filename, string section_name, string buildid) { in WriteElfWithBuildid() argument
78 std::make_pair(section_name, buildid)}; in WriteElfWithBuildid()
109 const string &buildid = entry.second; in WriteElfWithMultipleBuildids() local
121 note_header.n_descsz = Align<4>(buildid.size()); in WriteElfWithMultipleBuildids()
128 data_str.append(buildid); in WriteElfWithMultipleBuildids()
129 data_str.append(string(note_header.n_descsz - buildid.size(), '\0')); in WriteElfWithMultipleBuildids()
Ddso_test_utils.h16 void WriteElfWithBuildid(string filename, string section_name, string buildid);
Dperf_parser.cc309 string* buildid) { in ReadElfBuildIdIfSameInode() argument
322 return ReadElfBuildId(fd, buildid); in ReadElfBuildIdIfSameInode()
/external/bcc/src/cc/
Dbcc_elf.c288 static int find_buildid(Elf *e, char *buildid) { in find_buildid() argument
297 sprintf(buildid + (i * 2), "%02hhx", buf[i]); in find_buildid()
445 char buildid[128]; // currently 40 seems to be default, let's be safe in find_debug_via_buildid() local
447 if (!find_buildid(e, buildid)) in find_debug_via_buildid()
455 buildid[0], buildid[1], buildid + 2); in find_debug_via_buildid()
/external/elfutils/tests/
Drun-buildid.sh27 testrun_compare ${abs_builddir}/buildid testfile42 testfile42_noshdrs \
DMakefile.am55 buildid deleted deleted-lib.so aggregate_size peel_type \ program
112 run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
250 run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
DChangeLog225 * buildid.c: Likewise.
1627 * buildid.c, buildid.sh, testfile42_noshdrs.bz2: New files.
1628 * Makefile.am (check_PROGRAMS): Add buildid.
1629 (TESTS): Add run-buildid.sh.
1630 (EXTRA_DISTS): Add run-buildid.sh and testfile42_noshdrs.bz2.
/external/elfutils/
D.gitignore99 /tests/buildid