]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: improve accuracy of load time
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 14 Jun 2018 18:06:55 +0000 (11:06 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Jun 2018 01:13:17 +0000 (03:13 +0200)
commit0b64d40c7160d50d90d5ba32a90debb2e6fb737a
tree53f9b6e995b1f7d2f2348288bb047638a491f7fb
parentcf958903273224a7a9b5653b677b803bd8082401
tools: bpftool: improve accuracy of load time

BPF program load time is reported from the kernel relative to boot time.
If conversion to wall clock does not take nanosecond parts into account,
the load time reported by bpftool may differ by one second from run to
run.  This means JSON object reported by bpftool for a program will
randomly change.

Fixes: 23857202cde3 ("tools: bpf: add bpftool")
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/prog.c