diff --git a/README.adoc b/README.adoc index 1b70be8..1cc062e 100644 --- a/README.adoc +++ b/README.adoc @@ -11016,12 +11016,23 @@ cat /proc/cpuinfo getconf _NPROCESSORS_CONF .... -Or from <>, we can use <> with link:userland/linux/sysconf.c[] or <>'s link:userland/cpp/thread_hardware_concurrency.cpp[]: +Or from <>, we can use either of: +* <> with link:userland/linux/sysconf.c[] ++ .... ./run --cpus 2 --emulator gem5 --userland userland/linux/sysconf.c | grep _SC_NPROCESSORS_ONLN +.... +* <>'s link:userland/cpp/thread_hardware_concurrency.cpp[]: ++ +.... ./run --cpus 2 --emulator gem5 --userland userland/cpp/thread_hardware_concurrency.cpp .... +* direct access to several special filesystem files that contain this information e.g. via link:userland/c/cat.c[]: ++ +.... +./run --cpus 2 --emulator gem5 --userland userland/c/cat.c --cli-args /proc/cpuinfo +.... ====== QEMU user mode multithreading