[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e79b927: Specify '--freq=max' for 'perf recor
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e79b927: Specify '--freq=max' for 'perf record' |
Date: |
Fri, 11 Dec 2020 14:40:24 -0500 (EST) |
branch: master
commit e79b927342fe73bc1fc3ed2e1e96f746db20acc3
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Specify '--freq=max' for 'perf record'
The default frequency, 4K samples/second, is rather low. A higher value
gives more detailed information and greater stability.
Incidentally added a reference to a recent mailing-list post that
explains a particular $EXTRA_CFLAGS setting.
---
gwc/perf_ln.sh | 2 +-
gwc/perf_static.sh | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/gwc/perf_ln.sh b/gwc/perf_ln.sh
index 081c510..8878de2 100755
--- a/gwc/perf_ln.sh
+++ b/gwc/perf_ln.sh
@@ -50,7 +50,7 @@ do ln $z $d/"$(basename "$z")"; done
# later, in a chroot that mounts /srv/cache_for_lmi/
# cd /opt/lmi/bin
# library path required for perf's and lmi's binaries
-#
LD_LIBRARY_PATH=.:/opt/lmi/local/gcc_x86_64-pc-linux-gnu/lib/:/srv/cache_for_lmi/perf_ln
/srv/cache_for_lmi/perf_ln/perf_4.19 record --call-graph lbr ./lmi_cli_shared
--accept --data_path=/opt/lmi/data --selftest
+#
LD_LIBRARY_PATH=.:/opt/lmi/local/gcc_x86_64-pc-linux-gnu/lib/:/srv/cache_for_lmi/perf_ln
/srv/cache_for_lmi/perf_ln/perf_4.19 record --freq=max --call-graph lbr
./lmi_cli_shared --accept --data_path=/opt/lmi/data --selftest
# Failed to open [ext4], continuing without symbols
# Failed to open [fscrypto], continuing without symbols
# Failed to open [kvm], continuing without symbols
diff --git a/gwc/perf_static.sh b/gwc/perf_static.sh
index 6f49d52..8c45094 100755
--- a/gwc/perf_static.sh
+++ b/gwc/perf_static.sh
@@ -40,7 +40,8 @@ set -vx
# pushd /usr/src/linux-source-4.19/tools/perf
# this fails...
# make clean; make EXTRA_LDFLAGS=-static 2>&1 |less
-# ...so do this instead
+# ...so do this instead--see:
+# https://lists.nongnu.org/archive/html/lmi/2020-12/msg00003.html
# make clean; make EXTRA_LDFLAGS=-static
EXTRA_CFLAGS=-Wno-discarded-qualifiers 2>&1 |less
# still, it's not purely static:
# ldd /usr/src/linux-source-4.19/tools/perf/perf
@@ -64,7 +65,7 @@ ln /usr/src/linux-source-4.19/tools/perf/perf $d/perf
# later, in a chroot that mounts /srv/cache_for_lmi/
# cd /opt/lmi/bin
# library path required only for lmi's libraries, not perf's
-# LD_LIBRARY_PATH=.:/opt/lmi/local/gcc_x86_64-pc-linux-gnu/lib/
/srv/cache_for_lmi/perf_static/perf record --call-graph lbr ./lmi_cli_shared
--accept --data_path=/opt/lmi/data --selftest
+# LD_LIBRARY_PATH=.:/opt/lmi/local/gcc_x86_64-pc-linux-gnu/lib/
/srv/cache_for_lmi/perf_static/perf record --freq=max --call-graph lbr
./lmi_cli_shared --accept --data_path=/opt/lmi/data --selftest
# Failed to open [ext4], continuing without symbols
# Failed to open [kvm], continuing without symbols
# Failed to open [fscrypto], continuing without symbols
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master e79b927: Specify '--freq=max' for 'perf record',
Greg Chicares <=