From: Bimmy Pujari
Add test validating that bpf_ktime_get_real_ns works fine.
Signed-off-by: Bimmy Pujari
---
.../selftests/bpf/prog_tests/ktime_real.c | 42 +++
.../bpf/progs/test_ktime_get_real_ns.c| 36
2 files changed, 78 insertions(+)
create
From: Bimmy Pujari
The existing bpf helper functions to get timestamp return the time
elapsed since system boot. This timestamp is not particularly useful
where epoch timestamp is required or more than one server is involved
and time sync is required. Instead, you want to use CLOCK_REALTIME
From: Bimmy Pujari
Add test validating that bpf_ktime_get_real_ns works fine.
Signed-off-by: Bimmy Pujari
---
.../selftests/bpf/prog_tests/ktime_real.c | 42 +++
.../bpf/progs/test_ktime_get_real_ns.c| 36
2 files changed, 78 insertions(+)
create
From: Bimmy Pujari
The existing bpf helper functions to get timestamp return the time
elapsed since system boot. This timestamp is not particularly useful
where epoch timestamp is required or more than one server is involved
and time sync is required. Instead, you want to use CLOCK_REALTIME
From: Bimmy Pujari
The existing bpf helper functions to get timestamp return the time
elapsed since system boot. This timestamp is not particularly useful
where epoch timestamp is required or more than one server is involved
and time sync is required. Instead, you want to use CLOCK_REALTIME
From: Bimmy Pujari
The existing bpf helper functions to get timestamp return the time
elapsed since system boot. This timestamp is not particularly useful
where epoch timestamp is required or more than one server is involved
and time sync is required. Instead, you want to use CLOCK_REALTIME
From: Bimmy Pujari
Test xdping measures RTT from xdp using monotonic time helper.
Extending xdping test to use real time helper function in order
to verify this helper function.
Signed-off-by: Bimmy Pujari
---
.../testing/selftests/bpf/progs/xdping_kern.c | 183 +
.../testing
From: Bimmy Pujari
Test xdping measures RTT from xdp using monotonic time helper.
Extending xdping test to use real time helper function in order
to verify this helper function.
Signed-off-by: Bimmy Pujari
Signed-off-by: Ashkan Nikravesh
---
.../testing/selftests/bpf/progs/xdping_kern.c
From: Bimmy Pujari
The existing bpf helper functions to get timestamp return the time
elapsed since system boot. This timestamp is not particularly useful
where epoch timestamp is required or more than one server is involved
and time sync is required. Instead, you want to use CLOCK_REALTIME
,
which provides epoch timestamp.
Hence add bfp_ktime_get_real_ns() based around CLOCK_REALTIME.
Signed-off-by: Ashkan Nikravesh
Signed-off-by: Bimmy Pujari
---
drivers/media/rc/bpf-lirc.c| 2 ++
include/linux/bpf.h| 1 +
include/uapi/linux/bpf.h | 7 +++
kernel/bpf
10 matches
Mail list logo