Re: [PATCH bpf-next v5] bpf: Add bpf_ktime_get_real_ns

2020-09-24 Thread Daniel Borkmann
On 9/25/20 12:15 AM, David Ahern wrote: On 9/24/20 4:07 PM, bimmy.puj...@intel.com wrote: diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index a22812561064..198e69a6508d 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -3586,6 +3586,13 @@ union bpf_attr {

Re: [PATCH bpf-next v5] bpf: Add bpf_ktime_get_real_ns

2020-09-24 Thread David Ahern
On 9/24/20 4:07 PM, bimmy.puj...@intel.com wrote: > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > index a22812561064..198e69a6508d 100644 > --- a/include/uapi/linux/bpf.h > +++ b/include/uapi/linux/bpf.h > @@ -3586,6 +3586,13 @@ union bpf_attr { > * the data in *dst

[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, whic