Centos-kernel-stream-9/include
Viktor Malik c600be116d
bpf: Improve program stats run-time calculation
JIRA: https://issues.redhat.com/browse/RHEL-30773

commit ce09cbdd988887662546a1175bcfdfc6c8fdd150
Author: Jose Fernandez <josef@netflix.com>
Date:   Mon Apr 1 21:40:10 2024 -0600

    bpf: Improve program stats run-time calculation
    
    This patch improves the run-time calculation for program stats by
    capturing the duration as soon as possible after the program returns.
    
    Previously, the duration included u64_stats_t operations. While the
    instrumentation overhead is part of the total time spent when stats are
    enabled, distinguishing between the program's native execution time and
    the time spent due to instrumentation is crucial for accurate
    performance analysis.
    
    By making this change, the patch facilitates more precise optimization
    of BPF programs, enabling users to understand their performance in
    environments without stats enabled.
    
    I used a virtualized environment to measure the run-time over one minute
    for a basic raw_tracepoint/sys_enter program, which just increments a
    local counter. Although the virtualization introduced some performance
    degradation that could affect the results, I observed approximately a
    16% decrease in average run-time reported by stats with this change
    (310 -> 260 nsec).
    
    Signed-off-by: Jose Fernandez <josef@netflix.com>
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    Acked-by: Daniel Borkmann <daniel@iogearbox.net>
    Link: https://lore.kernel.org/bpf/20240402034010.25060-1-josef@netflix.com

Signed-off-by: Viktor Malik <vmalik@redhat.com>
2024-11-07 13:58:41 +01:00
..
acpi Merge: x86 confidential computing updates for RHEL 9.6 2024-11-05 11:43:04 +00:00
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux bpf: Improve program stats run-time calculation 2024-11-07 13:58:41 +01:00
math-emu
media
memory
misc
net Merge: CNB96: timekeeping: add clocksource ID and infrastructure for converting to/from a base clock 2024-11-05 11:41:13 +00:00
pcmcia
ras
rdma RDMA/core: Provide rdma_user_mmap_disassociate() to disassociate mmap pages 2024-10-27 19:32:22 -04:00
rv
scsi
soc
sound
target
trace bpf: add bpf_modify_return_test_tp() kfunc triggering tracepoint 2024-11-07 13:58:36 +01:00
uapi bpf: Fix typo in uapi doc comments 2024-11-07 13:58:40 +01:00
ufs
vdso
video
xen