]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: use PERF_SAMPLE_TIME instead of reading the clock
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 May 2018 17:24:37 +0000 (10:24 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 10 May 2018 23:40:51 +0000 (01:40 +0200)
commitf9c53b1ac5e47a646bd81090d4ecec903a4de53b
tree2bccacf26947c659d816faafcc6eeaabf980cbca
parent12871c4f2c445a5483a4211270d8052c2e10427f
tools: bpftool: use PERF_SAMPLE_TIME instead of reading the clock

Ask the kernel to include sample time in each even instead of
reading the clock.  This is also more accurate because our
clock reading was done when user space would dump the buffer,
not when sample was produced.

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/map_perf_ring.c