* [Bug debuginfod/27669] New: extend webapi for partial match source queries
@ 2021-03-31 1:37 fche at redhat dot com
2021-03-31 8:59 ` [Bug debuginfod/27669] " mark at klomp dot org
2021-03-31 10:06 ` fche at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: fche at redhat dot com @ 2021-03-31 1:37 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27669
Bug ID: 27669
Summary: extend webapi for partial match source queries
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: debuginfod
Assignee: unassigned at sourceware dot org
Reporter: fche at redhat dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
It may be desirable to fetch source files by buildid and __FILE__ name only, as
these can be introspectively extracted sometimes from a running program image,
without DWARF comp_dir etc. work.
It could look like this:
/buildid/HEXCODE/source*/PARTIAL_PATH
and implement the search by using a sql LIKE operator
artifactsrc like '%PARTIAL_PATH'
in the mhd-query-s block of handle_buildid()
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug debuginfod/27669] extend webapi for partial match source queries
2021-03-31 1:37 [Bug debuginfod/27669] New: extend webapi for partial match source queries fche at redhat dot com
@ 2021-03-31 8:59 ` mark at klomp dot org
2021-03-31 10:06 ` fche at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: mark at klomp dot org @ 2021-03-31 8:59 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27669
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Frank Ch. Eigler from comment #0)
> It may be desirable to fetch source files by buildid and __FILE__ name only,
> as these can be introspectively extracted sometimes from a running program
> image, without DWARF comp_dir etc. work.
>
> It could look like this:
>
> /buildid/HEXCODE/source*/PARTIAL_PATH
>
> and implement the search by using a sql LIKE operator
>
> artifactsrc like '%PARTIAL_PATH'
>
> in the mhd-query-s block of handle_buildid()
This might indeed be useful. But how exactly does one get just the buildid and
a source file (base) name? If this comes through DWARF then why not get the
comp_dir at the same time?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug debuginfod/27669] extend webapi for partial match source queries
2021-03-31 1:37 [Bug debuginfod/27669] New: extend webapi for partial match source queries fche at redhat dot com
2021-03-31 8:59 ` [Bug debuginfod/27669] " mark at klomp dot org
@ 2021-03-31 10:06 ` fche at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fche at redhat dot com @ 2021-03-31 10:06 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=27669
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
> But how exactly does one get just the buildid and a source file (base) name?
You do not want to know. :-)
To find self-buildid:
https://github.com/systemd/systemd/pull/19160
To find self source name:
https://github.com/systemd/systemd/blob/fee6441601c979165ebcbb35472036439f8dad5f/src/systemd/sd-journal.h
(Use __FILE__ in sd_journal_() macro apis to find the CU name, sort of)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-31 10:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 1:37 [Bug debuginfod/27669] New: extend webapi for partial match source queries fche at redhat dot com
2021-03-31 8:59 ` [Bug debuginfod/27669] " mark at klomp dot org
2021-03-31 10:06 ` fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).