November 22, 20232 yr I am running root@rk3318-box:/home/gthaker# uname -a Linux rk3318-box 6.1.50-current-rockchip64 #3 SMP PREEMPT Wed Aug 30 14:11:13 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux on a H96 TV box that I am using as ADS-B hobby receiver. Generally works great. I was curious why I can't run "hwlatdetect" on my box. I get: root@rk3318-box:/home/gthaker# hwlatdetect --duration=10s Traceback (most recent call last): File "/usr/sbin/hwlatdetect", line 553, in <module> detect = Tracer() File "/usr/sbin/hwlatdetect", line 324, in __init__ raise DetectorNotAvailable("hwlat", "hwlat tracer not available") __main__.DetectorNotAvailable: ('hwlat', 'hwlat tracer not available') Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook with os.fdopen(os.open(pr_filename, FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_sbin_hwlatdetect.0.crash' Original exception was: Traceback (most recent call last): File "/usr/sbin/hwlatdetect", line 553, in <module> detect = Tracer() File "/usr/sbin/hwlatdetect", line 324, in __init__ raise DetectorNotAvailable("hwlat", "hwlat tracer not available") __main__.DetectorNotAvailable: ('hwlat', 'hwlat tracer not available') root@rk3318-box:/home/gthaker# cat /etc/issue.net Armbian 23.8.3 jammy root@rk3318-box:/home/gthaker# cat /sys/kernel/tracing/tracing_on 1 I am familiar with Linux in general but not very familiar with what it takes to get this to work. Will I have to build a new kernel w/ some more tracing options enabled? Where might I find instructions? Thanks.
November 26, 20232 yr Please check python version, probably this program need a different from 3.10.12 and dependencies.
November 29, 20232 yr Author The problem appears not be related to python version but fact that the standard kernel I am running with Armbian 23.8.3 jammy , Linux rk3318-box 6.1.50-current-rockchip64 #3 SMP PREEMPT Wed Aug 30 14:11:13 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux does not appear to "hwlat" tracer compiled into the kernel. Can anyone confirm this? Is there a pointer to how to build a kernel with this tracer enabled?
November 30, 20232 yr use an x86 computer with ubuntu 22.04 Build Armbian ./compile.sh KERNEL_CONFIGURE=yes Edited November 30, 20232 yr by hotnikq
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.