Jump to content

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


Recommended Posts

Posted

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.

 


 

 

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines