From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Quentin Monnet <quentin.monnet@netronome.com>
Cc: ast@kernel.org, borkmann@iogearbox.net, netdev@vger.kernel.org,
oss-drivers@netronome.com
Subject: Re: [PATCH bpf-nex] tools: bpftool: change time format for program 'loaded at:' information
Date: Tue, 1 May 2018 14:25:50 -0700 [thread overview]
Message-ID: <20180501212548.ysibavrt22l67ych@ast-mbp> (raw)
In-Reply-To: <1525205918-16779-1-git-send-email-quentin.monnet@netronome.com>
On Tue, May 01, 2018 at 09:18:38PM +0100, Quentin Monnet wrote:
> To make eBPF program load time easier to parse from "bpftool prog"
> output for machines, change the time format used by the program. The
> format now differs for plain and JSON version:
>
> - Plain version uses a string formatted according to ISO 8601.
> - JSON uses the number of seconds since the Epoch, wich is less friendly
> for humans but even easier to process.
>
> Example output:
>
> # ./bpftool prog
> 41298: xdp tag a04f5eef06a7f555 dev foo
> loaded_at 2018-04-18T17:19:47+0100 uid 0
> xlated 16B not jited memlock 4096B
>
> # ./bpftool prog -p
> [{
> "id": 41298,
> "type": "xdp",
> "tag": "a04f5eef06a7f555",
> "gpl_compatible": false,
> "dev": {
> "ifindex": 14,
> "ns_dev": 3,
> "ns_inode": 4026531993,
> "ifname": "foo"
> },
> "loaded_at": 1524068387,
> "uid": 0,
> "bytes_xlated": 16,
> "jited": false,
> "bytes_memlock": 4096
> }
> ]
>
> Previously, "Apr 18/17:19" would be used at both places.
>
> Suggested-by: Alexei Starovoitov <ast@kernel.org>
> Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Applied, Thanks!
prev parent reply other threads:[~2018-05-01 21:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-01 20:18 [PATCH bpf-nex] tools: bpftool: change time format for program 'loaded at:' information Quentin Monnet
2018-05-01 21:25 ` Alexei Starovoitov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180501212548.ysibavrt22l67ych@ast-mbp \
--to=alexei.starovoitov@gmail.com \
--cc=ast@kernel.org \
--cc=borkmann@iogearbox.net \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@netronome.com \
--cc=quentin.monnet@netronome.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox