1
Is there a way in Linux to see the statistics for userspace apps that end up printing data to TTYs or to stdout (the actual stdout, not apps with stdout redirected to files on storage devices)?
Actual problem: a Linux Kernel driver is printing some messages related to an UART that has high loads of traffic going trough it. Among other data that I'm using to determine the cause, I'm trying to deduce who is triggering this high load (producing a lot of traffic on that UART/TTY).
There's no such thing as "the actual stdout" – stdout is defined as whatever fd #1 points to, without any priority given to console or pty or file or pipe. Are you talking about /dev/console? – user1686 – 2017-05-07T00:09:58.347
/dev/console is also a good target. – Catalin Vasile – 2017-05-07T01:19:00.597