Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unable to run "hwlatdetect" test program on Linux rk3318-box 6.1.50-current-rockchip64 #3 SMP PREEMPT Wed Aug 30 14:11:13 UTC 2023

Featured Replies

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.

 


 

 

  • 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?

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.