From: "Rantala, Tommi T. (Nokia - FI/Espoo)" <tommi.t.rantala@nokia.com>
To: "peterz@infradead.org" <peterz@infradead.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"acme@kernel.org" <acme@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: perf top --stdio, glibc 2.28, stdio EOF sticky
Date: Thu, 6 Jun 2019 06:55:48 +0000 [thread overview]
Message-ID: <dbb3aebe71e057d1104b5f0b809a7ab83a0ac596.camel@nokia.com> (raw)
Hello,
"perf top --stdio" (or perf kvm top --stdio) keyboard handling does not
work properly for me. Instead of accepting key presses, it just
displays the "Mapped keys:" help output always.
Seems to be related to this glibc 2.28 stdio change:
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS
* All stdio functions now treat end-of-file as a sticky condition. If
you
read from a file until EOF, and then the file is enlarged by another
process, you must call clearerr or another function with the same
effect
(e.g. fseek, rewind) before you can read the additional data. This
corrects a longstanding C99 conformance bug. It is most likely to
affect
programs that use stdio to read interactive input from a terminal.
(Bug #1190.)
Also "perf top </dev/null" with or without --stdio does not behave very
well either...
-Tommi
reply other threads:[~2019-06-06 6:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=dbb3aebe71e057d1104b5f0b809a7ab83a0ac596.camel@nokia.com \
--to=tommi.t.rantala@nokia.com \
--cc=acme@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/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
all inboxes | Powered by JetHome®