]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Improved reporting of NUMA nodes
authorMartin Mares <mj@ucw.cz>
Mon, 14 Sep 2015 14:46:49 +0000 (16:46 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 14 Sep 2015 14:46:49 +0000 (16:46 +0200)
They are also printed in "-vv" and "-nv" modes now.

lspci.c
lspci.man

diff --git a/lspci.c b/lspci.c
index a78eb26b21204844e9d91c40347b3af2869ed1b0..9ec65701af5f49bf08c6542eeb0fcc11672dcdc0 100644 (file)
--- 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
     {
index 5b3acbea51696cce06a0cb1eb34e7a97b2f55448..9348cfc54f36d4abfa346269e47a01c6a2543370 100644 (file)
--- 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.