From: Frank Ch. Eigler Date: Tue, 9 Dec 2025 03:00:29 +0000 (-0500) Subject: verbosity perf-attrs X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=2b00c8e176d9ad994799dc4fdd6a47be9aa3b9cd;p=thirdparty%2Felfutils.git verbosity perf-attrs --- diff --git a/src/stackprof.cxx b/src/stackprof.cxx index a13f88a4..f8654911 100644 --- a/src/stackprof.cxx +++ b/src/stackprof.cxx @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -278,6 +279,14 @@ main (int argc, char *argv[]) attr.mmap = 1; attr.mmap2 = 1; + if (verbose>1) + { + clog << "perf_event_attr configuration" << hex << showbase + << " type=" << attr.type + << " config=" << attr.config + << " sample_freq=" << attr.sample_freq << endl << resetiosflags; + } + if (pid == 0 && remaining < argc) // got a CMD... suffix? ok start it { int rc = pipe (pipefd); // will use pipefd[] >= 0 as flag for synchronization just below