]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
oops
authorSerhei Makarov <serhei@serhei.io>
Thu, 18 Dec 2025 21:21:51 +0000 (16:21 -0500)
committerSerhei Makarov <serhei@serhei.io>
Thu, 18 Dec 2025 21:21:51 +0000 (16:21 -0500)
src/stackprof.cxx

index 0fad4906948bad7e2ae4e079dbc7ed707e0eba8e..e07cb99775d8cee60dc5568e7cc865d3b83ce12a 100644 (file)
@@ -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);
 }