bpf: RFC for platform specific BPF helper addition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: bpf: RFC for platform specific BPF helper addition
- From: Tero Kristo <tero.kristo@xxxxxxxxxxxxxxx>
- Date: Thu, 23 Feb 2023 15:20:24 +0200
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1
Hi,
Some background first; on x86 platforms there is a free running TSC
counter which can be used to generate extremely accurate profiling time
stamps. Currently this can be used by BPF programs via hooking into perf
subsystem and reading the value there; however this reduces the accuracy
due to latency + jitter involved with long execution chain, and also the
timebase gets converted into relative from the start of the execution of
the program, instead of getting an absolute system level value.
Now, I do have a pretty trivial patch (under internal review atm. at
Intel) that adds an x86 platform specific bpf helper that can directly
read this timestamp counter without relying to perf subsystem hooks.
Do people have any feedback / insights on this list about addition of
such platform specific BPF helper, basically thumbs up/down for adding
such a thing? Currently I don't think there are any platform specific
helpers in the kernel.
-Tero
[Index of Archives]
[Linux Samsung SoC]
[Linux Rockchip SoC]
[Linux Actions SoC]
[Linux for Synopsys ARC Processors]
[Linux NFS]
[Linux NILFS]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Yosemite News]
[Linux Kernel]
[Linux SCSI]