From: Serhei Makarov Date: Thu, 22 Aug 2024 22:08:49 +0000 (-0400) Subject: eu-stacktrace fixup: count samples where sysprof_init_dwfl failed X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b998344b386f770d6e146457eb0fa96830cda42d;p=thirdparty%2Felfutils.git eu-stacktrace fixup: count samples where sysprof_init_dwfl failed --- diff --git a/src/stacktrace.c b/src/stacktrace.c index 9b24b473..dccde2b8 100644 --- a/src/stacktrace.c +++ b/src/stacktrace.c @@ -1138,6 +1138,12 @@ sysprof_unwind_cb (SysprofCaptureFrame *frame, void *arg) Dwfl *dwfl = sysprof_init_dwfl (sui, ev, regs); if (dwfl == NULL) { + if (show_summary) + { + dwfltab_ent *dwfl_ent = dwfltab_find(frame->pid); + dwfl_ent->total_samples++; + dwfl_ent->lost_samples++; + } if (show_failures) fprintf(stderr, "sysprof_init_dwfl pid %lld (%s) (failed)\n", (long long)frame->pid, comm);