diff options
| author | Tero Kristo <[email protected]> | 2023-03-02 11:46:13 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-03 06:41:32 +0000 |
| commit | f71f8530494bb5ab43d3369ef0ce8373eb1ee077 (patch) | |
| tree | de62a9ddb2781c29925cda8028ef1fb17573dbc5 /tools/testing/selftests/bpf/prog_tests/timer.c | |
| parent | selftests/bpf: Add -Wuninitialized flag to bpf prog flags (diff) | |
| download | kernel-f71f8530494bb5ab43d3369ef0ce8373eb1ee077.tar.gz kernel-f71f8530494bb5ab43d3369ef0ce8373eb1ee077.zip | |
bpf: Add support for absolute value BPF timers
Add a new flag BPF_F_TIMER_ABS that can be passed to bpf_timer_start()
to start an absolute value timer instead of the default relative value.
This makes the timer expire at an exact point in time, instead of a time
with latencies induced by both the BPF and timer subsystems.
Suggested-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Tero Kristo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/timer.c')
0 files changed, 0 insertions, 0 deletions
