From: Yonghong Song <yhs@fb.com>
To: Paul Chaignon <paul@isovalent.com>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>
Cc: <bpf@vger.kernel.org>, Quentin Monnet <quentin@isovalent.com>
Subject: Re: [PATCH bpf v3] bpftool: Enable line buffering for stdout
Date: Mon, 20 Dec 2021 16:31:18 -0800 [thread overview]
Message-ID: <d04939f7-17b9-1016-2325-131666e143db@fb.com> (raw)
In-Reply-To: <20211220214528.GA11706@Mem>
On 12/20/21 1:45 PM, Paul Chaignon wrote:
> The output of bpftool prog tracelog is currently buffered, which is
> inconvenient when piping the output into other commands. A simple
> tracelog | grep will typically not display anything. This patch fixes it
> by enabling line buffering on stdout for the whole bpftool binary.
>
> Fixes: 30da46b5dc3a ("tools: bpftool: add a command to dump the trace pipe")
> Signed-off-by: Quentin Monnet <quentin@isovalent.com>
> Signed-off-by: Paul Chaignon <paul@isovalent.com>
Acked-by: Yonghong Song <yhs@fb.com>
prev parent reply other threads:[~2021-12-21 0:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-20 21:45 [PATCH bpf v3] bpftool: Enable line buffering for stdout Paul Chaignon
2021-12-21 0:31 ` Yonghong Song [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=d04939f7-17b9-1016-2325-131666e143db@fb.com \
--to=yhs@fb.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=paul@isovalent.com \
--cc=quentin@isovalent.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;
as well as URLs for NNTP newsgroup(s).