applied: https://github.com/crash-utility/crash/commit/c601b311dd09dfbdca13dc2f06e9ff440fe92718
On Tue, Dec 23, 2025 at 3:12 PM Lianbo Jiang <[email protected]> wrote: > > Hi, Luis > > Thank you for the patch. Ack. > > > Lianbo > > On 12/23/25 9:45 AM, [email protected] wrote: > > Date: Wed, 17 Dec 2025 08:13:50 -0000 > > From: "Luis Galdos"<[email protected]> > > Subject: [Crash-utility] [PATCH] bpf: improve for-loop when searching > > for used_maps > > To:[email protected] > > Message-ID:<[email protected]> > > Content-Type: text/plain; charset="utf-8" > > > > As the list bpf->maplist contains unique pointers, break when a > > map is found. > > > > Signed-off-by: Luis Galdos<[email protected]> > > --- > > bpf.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/bpf.c b/bpf.c > > index 9b99e23..2840c7d 100644 > > --- a/bpf.c > > +++ b/bpf.c > > @@ -880,6 +880,7 @@ bpf_prog_used_maps(int idx, char *retbuf) > > sprintf(&retbuf[strlen(retbuf)], "%s%ld", > > strlen(retbuf) ? "," : "", > > bpf->maplist[m].index); > > + break; > > } > > } > > } > > -- 2.52.0 > -- > Crash-utility mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/ > Contribution Guidelines: https://github.com/crash-utility/crash/wiki -- Crash-utility mailing list -- [email protected] To unsubscribe send an email to [email protected] https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/ Contribution Guidelines: https://github.com/crash-utility/crash/wiki
