* [LTP] [PATCH 1/1] ver_linux: Add /proc/meminfo
@ 2023-09-01 12:58 Petr Vorel
2023-09-04 14:56 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Petr Vorel @ 2023-09-01 12:58 UTC (permalink / raw)
To: ltp
We have free, which shows basic memory info.
But printing /proc/meminfo can be useful to get detailed info or
get any info on embedded systems which might not have procps installed.
+ move free output, to have all memory info after CPU info.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
ver_linux | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ver_linux b/ver_linux
index 2df1c7b69..7dd0fe176 100755
--- a/ver_linux
+++ b/ver_linux
@@ -130,13 +130,17 @@ if [ -e /proc/modules ]; then
echo "Modules Loaded "$X
fi
+echo
+echo 'cpuinfo:'
+tst_cmd_run lscpu || cat /proc/cpuinfo
+
echo
echo 'free reports:'
free
echo
-echo 'cpuinfo:'
-tst_cmd_run lscpu || cat /proc/cpuinfo
+echo 'memory (/proc/meminfo):'
+cat /proc/meminfo
echo
echo 'available filesystems:'
--
2.40.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH 1/1] ver_linux: Add /proc/meminfo
2023-09-01 12:58 [LTP] [PATCH 1/1] ver_linux: Add /proc/meminfo Petr Vorel
@ 2023-09-04 14:56 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2023-09-04 14:56 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
Hi!
Applied, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-04 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-01 12:58 [LTP] [PATCH 1/1] ver_linux: Add /proc/meminfo Petr Vorel
2023-09-04 14:56 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox