summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2015-09-14 16:46:49 +0200
committerMartin Mares <mj@ucw.cz>2015-09-14 16:46:49 +0200
commit1d9d1a01b02b2ce90e5fc7eeff109b5ad95ce0cd (patch)
tree8dffb2f8a07cacc706a80e924ca06605c43e9d83
parent90ec4a6d0ae85ccd018be3da2d080f602fc56ca7 (diff)
downloadpciutils-1d9d1a01b02b2ce90e5fc7eeff109b5ad95ce0cd.tar.gz
Improved reporting of NUMA nodes
They are also printed in "-vv" and "-nv" modes now.
-rw-r--r--lspci.c4
-rw-r--r--lspci.man4
2 files changed, 8 insertions, 0 deletions
diff --git a/lspci.c b/lspci.c
index a78eb26..9ec6570 100644
--- a/lspci.c
+++ b/lspci.c
@@ -733,6 +733,8 @@ show_verbose(struct device *d)
if (int_pin || irq)
printf("\tInterrupt: pin %c routed to IRQ " PCIIRQ_FMT "\n",
(int_pin ? 'A' + int_pin - 1 : '?'), irq);
+ if (p->numa_node != -1)
+ printf("\tNUMA node: %d\n", p->numa_node);
}
else
{
@@ -858,6 +860,8 @@ show_machine(struct device *d)
printf("ProgIf:\t%02x\n", c);
if (opt_kernel)
show_kernel_machine(d);
+ if (p->numa_node != -1)
+ printf("NUMANode:\t%d\n", p->numa_node);
}
else
{
diff --git a/lspci.man b/lspci.man
index 5b3acbe..9348cfc 100644
--- a/lspci.man
+++ b/lspci.man
@@ -305,6 +305,10 @@ Kernel driver currently handling the device (optional, Linux only).
Kernel module reporting that it is capable of handling the device
(optional, Linux only).
+.TP
+.B NUMANode
+NUMA node this device is connected to (optional, Linux only).
+
.P
New tags can be added in future versions, so you should silently ignore any tags you don't recognize.