]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtla/osnoise: Use pretty formatting only on interactive tty
authorLuis Claudio R. Goncalves <lgoncalv@redhat.com>
Mon, 10 Jun 2024 13:25:28 +0000 (10:25 -0300)
committerDaniel Bristot de Oliveira <bristot@kernel.org>
Fri, 21 Jun 2024 08:17:51 +0000 (10:17 +0200)
commit59237b0c962e8a4e03a7666b8c1d047c262f236e
tree197a3dba47be8cd8e27a08fd87dac482f2b74a9e
parent6ba59ff4227927d3a8530fc2973b80e94b54d58f
rtla/osnoise: Use pretty formatting only on interactive tty

osnoise top performs background/font color formatting that could make
the text output confusing if not on a terminal. Use the changes from
commit f5c0cdad6684a ("rtla/timerlat: Use pretty formatting only on
interactive tty") as an inspiration to fix this problem.

Apply the formatting only if running on a tty, and not in quiet mode.

Link: https://lkml.kernel.org/r/Zmb-yP_3EDHliI8Z@uudg.org
Suggested-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Reviewed-by: John Kacur <jkacur@redhat.com>
Reviewed-by: Clark Williams <williams@redhat.com>
Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
tools/tracing/rtla/src/osnoise_top.c