PROPHET/OS
NAME
irqs: shows the interrupts
SYNOPSIS
irqs [--tui]
DESCRIPTION
Shows the interrupts: who holds a line or a vector, how often it fired.
The title says how many lines there are, how many of them stand open, how many vectors arrive as a message, and how many pulses nobody owned.
Two kinds of row, and Line says which. A number is one of the sixteen lines the service irq leads; a dash is a vector beside them, because a message does not run over a line at all: the device writes it to the local APIC, and what arrives is a vector.
Owner is the module whose work the thread was doing when the handler went in, the same answer the registry books its handlers against; below it stands the module the registering thread belongs to, the same two steps the foreign ledger takes. A dash means the gate carries no module: either nothing sits on it, which State then says, or the core took it itself, outside every module frame. The shootdown of the TLB and the wake between cores are of that kind.
Via says how the interrupt reaches the core. line over a line of the service, msi and msi-x as a message the device writes itself, local what the local APIC raises by itself: the tick, the wake between cores, the shootdown of the TLB. Core names the core the entry or the message points at; all stands where every core arms the vector for itself, which is the case for everything local.
Fired counts what arrived, Stray what arrived and found no handler. The dispatcher drops such a pulse, acknowledges it and runs on (rule 5), and both used to stand in one counter: a line ringing into the void looked exactly like one doing work. The spurious vector 0xFF therefore stands in this table as what it is, a count without an owner.
State reads open for a line with a handler behind it, masked for one switched off, free for one nobody asked for, displaced for one whose entry belongs to a redirected line (the MADT maps IRQ 0 onto GSI 2), and loose for the one case worth a look: the line stands open and nobody is behind it.
GSI is the global interrupt a line sits on. Only a line has one.
Nothing in this table is set. The entry of a line comes out of the chip, the mask of the 8259 out of its mask register, the counters out of the dispatcher.
--tui takes the whole screen and keeps the table live; the arrows and the two page keys move in it, q leaves. Both shapes show the same table, and that is why they cannot drift apart: it stands once, in lib/os/board.c.
EXAMPLE
$ irqs 16 lines, 2 of them open, 2 vectors behind a message, 0 pulses nobody owned Line Vec Owner Via Core Trig Fired Stray State GSI 0 32 - line 0 edge 0 0 free 2 1 33 input line 0 edge 0 0 open 1 2 34 - line 0 edge 0 0 displaced 2 3 35 - line 0 edge 0 0 free 3 4 36 input line 0 edge 149 0 open 4 5 37 - line 0 level 0 0 free 5 6 38 - line 0 edge 0 0 free 6 7 39 - line 0 edge 0 0 free 7 8 40 - line 0 edge 0 0 free 8 9 41 - line 0 level 0 0 free 9 10 42 - line 0 level 0 0 free 10 11 43 - line 0 level 0 0 free 11 12 44 - line 0 edge 0 0 free 12 13 45 - line 0 edge 0 0 free 13 14 46 - line 0 edge 0 0 free 14 15 47 - line 0 edge 0 0 free 15 - 64 timer local all edge 64883 0 open - - 65 - local all edge 0 0 open - - 80 - local all edge 8502 0 open - - 81 dma local all edge 0 0 open - - 82 - local all edge 0 0 open - - 83 blk msi 0 edge 15754 0 open - - 84 net msi 0 edge 5 0 open - - 239 - local all edge 0 0 open -