Archive for the ‘BPF’ Category

my experience with kernel lockdown and eBFP

I’m running Ubuntu Linux on Dell Latitude 7390 and was extremely baffled when suddenly I couldn’t run any of eBPF tools. Even running as root I received this: Error creating map: ‘@curfreq’: Operation not permitted Error creating map: ‘@process_mhz’: Operation not permitted Error creating map: ‘@system_mhz’: Operation not permitted Error creating printf map: Operation not […]

Posted on March 15, 2020 at 2:09 pm by sergeyt · Permalink · Leave a comment
In: BPF, Linux

python-bpfcc on Ubuntu 19.10 misses PerfEventArray due to an outdated bpfcc-tools

If you, like me, follow bcc Python Developer Tutorial, to sharpen bpf skills you might hit the same snag as I did when I was trying to implement a solution for lesson 8: Traceback (most recent call last): File “_ctypes/callbacks.c”, line 315, in ‘calling callback function’ File “/usr/lib/python2.7/dist-packages/bcc/table.py”, line 572, in raw_cb_ callback(cpu, data, size) […]

Posted on January 13, 2020 at 4:35 pm by sergeyt · Permalink · Leave a comment
In: BPF, Linux