[PATCH bpf-next v7 2/2] selftests/bpf: Selftest for real time helper

2020-09-30 Thread bimmy . pujari
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

[PATCH bpf-next v7 1/2] bpf: Add bpf_ktime_get_real_ns

2020-09-30 Thread bimmy . pujari
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

[PATCH bpf-next v6 2/2] selftests/bpf: Selftest for real time helper

2020-09-30 Thread bimmy . pujari
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

[PATCH bpf-next v6 1/2] bpf: Add bpf_ktime_get_real_ns

2020-09-30 Thread bimmy . pujari
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

[PATCH bpf-next v5] bpf: Add bpf_ktime_get_real_ns

2020-09-24 Thread bimmy . pujari
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

[PATCH bpf-next v3 1/2] bpf: Add bpf_ktime_get_real_ns

2020-09-23 Thread bimmy . pujari
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

[PATCH bpf-next v3 2/2] selftests/bpf: Verifying real time helper function

2020-09-23 Thread bimmy . pujari
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

[PATCH bpf-next v2 2/2] selftests/bpf: Verifying real time helper function

2020-09-23 Thread bimmy . pujari
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

[PATCH bpf-next v2 1/2] bpf: Add bpf_ktime_get_real_ns

2020-09-23 Thread bimmy . pujari
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

[PATCH] bpf: Add bpf_ktime_get_real_ns

2020-07-27 Thread bimmy . pujari
, 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