mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf top --stdio, glibc 2.28, stdio EOF sticky
@ 2019-06-06  6:55 Rantala, Tommi T. (Nokia - FI/Espoo)
  0 siblings, 0 replies; only message in thread
From: Rantala, Tommi T. (Nokia - FI/Espoo) @ 2019-06-06  6:55 UTC (permalink / raw)
  To: peterz, mingo, acme; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-06  6:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-06  6:55 perf top --stdio, glibc 2.28, stdio EOF sticky Rantala, Tommi T. (Nokia - FI/Espoo)

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®