[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZoySCNydQ-bW6Yg_@tassilo>
Date: Mon, 8 Jul 2024 18:27:36 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Andrii Nakryiko <andrii.nakryiko@...il.com>
Cc: Andrii Nakryiko <andrii@...nel.org>, linux-fsdevel@...r.kernel.org,
brauner@...nel.org, viro@...iv.linux.org.uk,
akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
bpf@...r.kernel.org, gregkh@...uxfoundation.org, linux-mm@...ck.org,
liam.howlett@...cle.com, surenb@...gle.com, rppt@...nel.org,
adobriyan@...il.com
Subject: Re: [PATCH v6 3/6] fs/procfs: add build ID fetching to PROCMAP_QUERY
API
> So what exactly did you have in mind when you were proposing that
> check? Did you mean to do a pass over all VMAs within the process to
> check if there is at least one executable VMA belonging to
> address_space? If yes, then that would certainly be way too expensive
> to be usable.
I was thinking to only report the build ID when the VMA queried
is executable. If software wanted to look up a data symbol
and needs that buildid it would need to check a x vma too.
Normally tools iterate over all the mappings anyways so this
shouldn't be a big burden for them.
Did I miss something?
I guess an alternative would be a new VMA flag, but iirc we're low on
bits there already.
-Andi
Powered by blists - more mailing lists