Lines Matching refs:b_source0
1833 const string& b_source0, in handle_buildid_f_match() argument
1842 int fd = open(b_source0.c_str(), O_RDONLY); in handle_buildid_f_match()
1844 throw libc_exception (errno, string("open ") + b_source0); in handle_buildid_f_match()
1855 throw libc_exception (errno, string("fstat ") + b_source0); in handle_buildid_f_match()
1861 obatched(clog) << "mtime mismatch for " << b_source0 << endl; in handle_buildid_f_match()
1868 int scn_fd = extract_section (fd, s.st_mtime, b_source0, section, extract_begin); in handle_buildid_f_match()
1877 << " for " << b_source0 << endl; in handle_buildid_f_match()
1885 throw libc_exception (errno, string ("fstat ") + b_source0 in handle_buildid_f_match()
1895 obatched(clog) << "cannot create fd-response for " << b_source0 in handle_buildid_f_match()
1904 add_mhd_response_header (r, "X-DEBUGINFOD-FILE", b_source0.c_str()); in handle_buildid_f_match()
1907 obatched(clog) << "serving file " << b_source0 << " section=" << section << endl; in handle_buildid_f_match()
1938 const string& b_source0, in handle_buildid_r_match() argument
1947 int rc = stat (b_source0.c_str(), &fs); in handle_buildid_r_match()
1949 throw libc_exception (errno, string("stat ") + b_source0); in handle_buildid_r_match()
1954 obatched(clog) << "mtime mismatch for " << b_source0 << endl; in handle_buildid_r_match()
1959 int fd = fdcache.lookup(b_source0, b_source1); in handle_buildid_r_match()
1966 obatched(clog) << "cannot fstat fdcache " << b_source0 << endl; in handle_buildid_r_match()
1968 fdcache.clear(b_source0, b_source1); in handle_buildid_r_match()
1975 b_source0 + ":" + b_source1, in handle_buildid_r_match()
1984 << " for archive " << b_source0 in handle_buildid_r_match()
1994 string ("fstat archive ") + b_source0 + string (" file ") + b_source1 in handle_buildid_r_match()
2003 obatched(clog) << "cannot create fd-response for " << b_source0 << endl; in handle_buildid_r_match()
2013 add_mhd_response_header (r, "X-DEBUGINFOD-ARCHIVE", b_source0.c_str()); in handle_buildid_r_match()
2017 obatched(clog) << "serving fdcache archive " << b_source0 in handle_buildid_r_match()
2031 if (string_endswith(b_source0, arch.first)) in handle_buildid_r_match()
2041 string popen_cmd = archive_decoder + " " + shell_escape(b_source0); in handle_buildid_r_match()
2049 fp = fopen (b_source0.c_str(), "r"); in handle_buildid_r_match()
2052 throw libc_exception (errno, string("fopen ") + b_source0); in handle_buildid_r_match()
2072 obatched(clog) << "cannot open archive from pipe " << b_source0 << endl; in handle_buildid_r_match()
2102 if (fdcache.probe (b_source0, fn) && // skip if already interned in handle_buildid_r_match()
2144 fdcache.intern(b_source0, fn, in handle_buildid_r_match()
2154 fdcache.intern(b_source0, b_source1, in handle_buildid_r_match()
2161 b_source0 + ":" + b_source1, in handle_buildid_r_match()
2170 << " for archive " << b_source0 in handle_buildid_r_match()
2180 string ("fstat ") + b_source0 + string (" ") + section); in handle_buildid_r_match()
2191 obatched(clog) << "cannot create fd-response for " << b_source0 << endl; in handle_buildid_r_match()
2201 add_mhd_response_header (r, "X-DEBUGINFOD-ARCHIVE", b_source0.c_str()); in handle_buildid_r_match()
2205 obatched(clog) << "serving archive " << b_source0 in handle_buildid_r_match()
2224 const string& b_source0, in handle_buildid_match() argument
2232 return handle_buildid_f_match(internal_req_p, b_mtime, b_source0, in handle_buildid_match()
2235 return handle_buildid_r_match(internal_req_p, b_mtime, b_source0, in handle_buildid_match()
2406 string b_source0 = string((const char*) sqlite3_column_text (*pp, 2) ?: ""); /* may be NULL */ in handle_buildid() local
2411 << " source0=" << b_source0 << " source1=" << b_source1 << endl; in handle_buildid()
2416 b_mtime, b_stype, b_source0, b_source1, in handle_buildid()
2430 if ((b_stype == "F" && (stat (b_source0.c_str (), &st) == 0)) in handle_buildid()
2431 || (b_stype == "R" && fdcache.probe (b_source0, b_source1))) in handle_buildid()