From: Serhei Makarov Date: Thu, 18 Dec 2025 21:21:51 +0000 (-0500) Subject: oops X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95398f1847fb575ca770af419ab2e14a05cbff9a;p=thirdparty%2Felfutils.git oops --- diff --git a/src/stackprof.cxx b/src/stackprof.cxx index 0fad4906..e07cb997 100644 --- a/src/stackprof.cxx +++ b/src/stackprof.cxx @@ -159,12 +159,7 @@ public: PerfConsumerUnwinder(UnwindSampleConsumer* usc): usc(usc) {} virtual ~PerfConsumerUnwinder() {} // XXX: needs to implement most of the process_* modes to unwind - void process(const perf_event_header* sample) { - UnwindSample junk; - junk.pid = getpid(); - usc->process(& junk); - } - void process(const perf_event_header* sample); // handle process lifecycle events; relay unwound call stack events to a consumer + void process(const perf_event_header* sample); }; @@ -801,6 +796,9 @@ void StatsPerfConsumer::process(const perf_event_header* ehdr) void PerfConsumerUnwinder::process(const perf_event_header* ehdr) { + UnwindSample junk; + junk.pid = getpid(); + usc->process(& junk); }