Equivalent of 'cat /proc/interrupts'


        New MDB dcmd ::interrupts


Solaris Express now has support for a new MDB dcmd ::interrupts
that shows similar output to that of 'cat /proc/interrupts' on Linux.


Output of ::interrupts on a x64 running 64-bit Solaris Express:
(System is using IOAPIC)

# echo ::interrupts | mdb -k
IRQ  Vector IPL Bus   Type  CPU Share APIC/INT# ISR(s)
3    0xb1   12  ISA   Fixed 1    1    0x0/0x3   asyintr
4    0xb0   12  ISA   Fixed 1    1    0x0/0x4   asyintr
6    0x42   5   ISA   Fixed 3    1    0x0/0x6   fdc_intr
9    0x80   9   PCI   Fixed 1    1    0x0/0x9   acpi_wrapper_isr
15   0x41   5   ISA   Fixed 2    1    0x0/0xf   ata_intr
16   0x81   9   PCI   Fixed 1    3    0x0/0x10  hci1394_isr, uhci_intr, uhci_intr
17   0x82   9   PCI   Fixed 2    1    0x0/0x11  audio810_intr
18   0x40   5   PCI   Fixed 3    3    0x0/0x12  ata_intr, uhci_intr, ata_intr
19   0x22   1   PCI   Fixed 1    1    0x0/0x13  uhci_intr
23   0x20   1   PCI   Fixed 0    1    0x0/0x17  ehci_intr
24   0x45   5   PCI   Fixed 0    1    0x1/0x0   adpu320_intr
48   0x60   6   PCI   Fixed 2    1    0x2/0x0   e1000g_intr
72   0x43   5         MSI   3    1    -         mpt_intr
73   0x44   5         MSI   3    1    -         mpt_intr
160  0xa0   0         IPI   ALL  0    -         poke_cpu
192  0xc0   13        IPI   ALL  1    -         xc_serv
208  0xd0   14        IPI   ALL  1    -         kcpc_hw_overflow_intr
209  0xd1   14        IPI   ALL  1    -         cbe_fire
210  0xd3   14        IPI   ALL  1    -         cbe_fire
224  0xe0   15        IPI   ALL  1    -         xc_serv
225  0xe1   15        IPI   ALL  1    -         apic_error_intr

Where IPL is the interrupt priority, APIC is the local APIC,
Driver name is represented as <driver_name><instance#>
and Type shows where Fixed (legacy) or MSI interrupts are being used.
IPI interrupt type indicates xcalls.
The Share column shows if the interrupt is being shared and by how many.

On a uppc(7d)  based system, the sample output is shown here

# echo ::interrupts | mdb -k 
> ::interrupts
IRQ  Vector IPL(lo/hi) Bus Share ISR(s)
  0   0x20     14/14    -     1  cbe_fire
  3   0x23     12/12   ISA    1  asyintr
  4   0x24     12/12   ISA    1  asyintr
  5   0x25      1/1    PCI    1  ehci_intr
  6   0x26      5/5    ISA    1  fdc_intr
  7   0x27      5/5    ISA    1  ecpp_isr
  9   0x29      9/9     -     1  acpi_wrapper_isr
 10   0x2a      1/9    PCI    3  e1000g_intr, hci1394_isr, uhci_intr
 11   0x2b      1/1    PCI    1  uhci_intr
 12   0x2c      1/9    PCI    2  uhci_intr, audiovia823x_intr
 14   0x2e      5/5    PCI    1  ata_intr
 15   0x2f      5/5    PCI    1  ata_intr
# echo ::interrupts -d | mdb -k
IRQ  Vector IPL(lo/hi) Bus Share Driver Name(s)
  0   0x20     14/14    -     1  cbe_fire
  3   0x23     12/12   ISA    1  asy#1
  4   0x24     12/12   ISA    1  asy#0
  5   0x25      1/1    PCI    1  ehci#0
  6   0x26      5/5    ISA    1  fdc#0
  7   0x27      5/5    ISA    1  ecpp#0
  9   0x29      9/9     -     1  acpi_wrapper_isr
 10   0x2a      1/9    PCI    3  e1000g#0, hci1394#0, uhci#1
 11   0x2b      1/1    PCI    1  uhci#0
 12   0x2c      1/9    PCI    2  uhci#2, audiovia823x#0
 14   0x2e      5/5    PCI    1  ata#0
 15   0x2f      5/5    PCI    1  ata#1


On a Niagara based SunFire T2000, the output looks like this:

# echo ::interrupts | mdb -k

        Device   Shared  Type    MSG #   State   INO     Mondo    Pil    CPU   
      e1000g#1      no   MSI        1    enbl    0x19    0x799      6     26 
      e1000g#0      no   MSI        0    enbl    0x18    0x798      6     18 
          px#0      no   PCIe      27    enbl    0x3b    0x7bb      1     30 
          px#0      no   PCIe      51    enbl    0x3a    0x7ba     14     31 
          px#0      no   PCIe      49    enbl    0x39    0x7b9     14      0 
          px#0      no   PCIe      48    enbl    0x38    0x7b8      9      1 
      e1000g#3      no   MSI        2    enbl    0x1a    0x7da      6     28 
      e1000g#2      no   MSI        1    enbl    0x19    0x7d9      6     27 
          su#0      no   Fixed    ---    enbl    0x2     0x7c2     12     20 
        uata#0      no   Fixed    ---    enbl    0x4     0x7c4      4      3 
        ohci#1      no   Fixed    ---    enbl    0x3     0x7c3      9     22 
        ohci#0      no   Fixed    ---    enbl    0x1     0x7c1      9     23 
         mpt#0      no   MSI        0    enbl    0x18    0x7d8      4     19 
          px#1      no   PCIe      27    enbl    0x3b    0x7fb      1     24 
          px#1      no   PCIe      51    enbl    0x3a    0x7fa     14     25 
          px#1      no   PCIe      49    enbl    0x39    0x7f9     14     26 
          px#1      no   PCIe      48    enbl    0x38    0x7f8      9     27 

Here interrupt Type PCIe implies it is using PCI Express  INTx.


On a SunFire V890, (which does not support MSI interrupts, the ouput looks like this:

# echo ::interrupts | mdb -k
        Device   Shared  Type    MSG #   State   INO     Mondo    Pil    CPU   
        uata#0      no   Fixed    ---    enbl    0x1c    0x21c      4     19 
          ge#0      no   Fixed    ---    enbl    0x0     0x200      6      7 
         qlc#0      no   Fixed    ---    enbl    0x4     0x204      4     18 
          su#1      no   Fixed    ---    enbl    0x2d    0x26d     12      1 
          su#0      no   Fixed    ---    enbl    0x2e    0x26e     12      0 
     pcf8584#2     yes   Fixed    ---    enbl    0x28    0x268      4      2 
     pcf8584#3     yes   Fixed    ---    enbl    0x28    0x268      4      2 
         eri#0      no   Fixed    ---    enbl    0x1d    0x25d      6     17 
        ohci#0      no   Fixed    ---    enbl    0x1f    0x25f      9     20 
          se#0      no   Fixed    ---    enbl    0x22    0x262     12     21 
   todds1287#0      no   Fixed    ---    enbl    0x24    0x264     15     22 
     hpc3130#3      no   Fixed    ---    enbl    0x26    0x266      1     23 
     hpc3130#0     yes   Fixed    ---    enbl    0x27    0x267      1      7 
     hpc3130#1     yes   Fixed    ---    enbl    0x27    0x267      1      7 
     hpc3130#2     yes   Fixed    ---    enbl    0x27    0x267      1      7 
     pcf8584#1     yes   Fixed    ---    enbl    0x23    0x263      4      0 
     pcf8584#0     yes   Fixed    ---    enbl    0x23    0x263      4      0 



Technorati Tag: Technorati Tag:
Comments:

Post a Comment:
Comments are closed for this entry.
About

anish

Search

Top Tags
Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today