]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
verbosity perf-attrs
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 9 Dec 2025 03:00:29 +0000 (22:00 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Tue, 9 Dec 2025 03:00:29 +0000 (22:00 -0500)
src/stackprof.cxx

index a13f88a471e825c7642f110828701ffa64189b3d..f86549113e5256a171e151dccbd547bb87c1a823 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <string>
 #include <memory>
+#include <iomanip>
 #include <unordered_map>
 #include <vector>
 #include <bitset>
@@ -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