PROPHET/OS

NAME

log: shows the report of the start, to read back

SYNOPSIS

log [lines] [--tui]

DESCRIPTION

Shows the report of the start, to read back.

The console is no good for it: it rolls, and on a change of the line count it is cleared. So the kernel writes every character into a fixed ring as well, and this program reads it.

With a number only the last lines come. --tui is a pager over the ring: the arrows and the two page keys move, f follows the end, q leaves. Following is on when the pager starts, so a machine that is saying something right now says it in front of you.

No table here, and that is on purpose: a log is free text of unknown width, and a column would cut every second line.

It was called dmesg until 2026-10-02, a name out of another system, and the writer that held the name log became logwrite.

EXAMPLE

$ log
nel runs up top
[GOOD] paging    kernel from 0xFFFFFFFF80000000, lower half empty, 3 tables returned
     bitmap, text buffer and tables now go through the direct map, a low address is an error
[GOOD] recorder  0 line(s), 0 byte(s) back into /log/kernel, 0 block(s) lost: nothing from a run before this one
     recorder at 0x000000007FFDB000, 10280 byte in 3 locked frame(s), chosen from the memory map
[TRY]  heap      creating the heap area
[GOOD] heap      ab 0xFFFF900000000000, 0 fetched, 0 given back, 0 bytes open
     1 frames held, 1 guard page(s), 3 frames taken from the allocator, tables among them for the heap area
     a canary before every block, pattern 0xDF on free. small blocks go into the free list of their class and
     are handed out again, large ones are unmapped and their address never comes back
[TRY]  module    creating the registry and counting the built-in modules
serial: turned off by the settings, registers 0x0, clock 0x0, at 0 ms, out 4931, lost 0, in the ring 0, holder 0x0
serial: se sha512    depends on nothing
     xchacha20poly1305depends on chacha20poly1305
     dma       depends on pci
     fabric    depends on nothing
     pfs       depends on blk, crc32c
     root      depends on nothing
     runlevel  depends on nothing
     input     depends on irq
     irq       depends on nothing
     ksym      depends on root
     log       depends on root, rtc
     mem       depends on nothing
     mountd    depends on root
     pci       depends on nothing
     power     depends on nothing
     proc      depends on nothing
     prog      depends on root
     rng       depends on nothing
     tgfx      depends on nothing
     timer     depends on irq
     usb       depends on pci, dma
     user      depends on root
     watchdog  depends on pci
     acpi      depends on nothing
     edac      depends on nothing
[TRY]  mem       choosing a provider for memory access
[GOOD] mem       mem.cpu.x86_64.avx512, prio 30
     zmm for copying from 256, for setting from 512, both up to 1024 bytes, and  0x000000007FFE2657      40 bytes  rev  1  BXPC      from RSDT
     DSDT  0x000000007FFE0040    9079 bytes  rev  1  BXPC      from FADT
     FACS  0x000000007FFE0000      64 bytes  rev  0            from FADT
[GOOD] acpi      FADT: PM1a_CNT 0x0604, SCI 9, SMI 0x00B2, profile unbestimmt
     century in CMOS register 0x32, 8042 present, RTC present
     DSDT 0x000000007FFE0040, FACS 0x000000007FFE0000
     restart over Port 0x0CF9, value 0x0F
     SLP_TYPa 0, SLP_TYPb 0, from the DSDT, 9043 bytes of AML searched
[GOOD] acpi      MADT: 8 of 8 cores on, LAPIC at 0xFEE00000, 8259 present
     I/O APIC 0 at 0xFEC00000, from GSI 0
     IRQ 0 sits on GSI 2, like the bus
     IRQ 5 sits on GSI 5, hoch aktiv, Pegel
     IRQ 9 sits on GSI 9, hoch aktiv, Pegel
     IRQ 10 sits on GSI 10, hoch aktiv, Pegel
     IRQ 11 sits on GSI 11, hoch aktiv, Pegel
[GOOD] acpi      MCFG: ECAM from 0xB0000000, Segment 0, buses 0..255, 256.0 MiB
[GOOD] acpi      HPET: Block 0 at 0xFED00000 (memory), 3 comparators, counter 64 bits
     vere range(s) mapped, tables written back over CLWB, 261 line(s) so far, faults reported on vector 81
     unit 0 at 0xFED90000, version 1.0, 4 levels over 48 bits, does not snoop the caches, queued invalidation, interrupts remapped, 65536 cage id(s), 8 device(s), translation on
       5 descriptor(s) through the queue in 2 round(s)
     0 of 256 remapping entries in use, full core id, legacy format blocked
     dma.direct, prio 0, stands ready as a fallback
[TRY]  usb       looking for USB host controllers and counting devices
[GOOD] usb       0 device(s) on 1 driver(s)
     usb.none, prio 0
     no USB controller, nothing hangs on the bus
[GOOD] usb       usb.none, prio 0 (fallback)
     no USB controller, nothing hangs on the bus
     usb.xhci, prio 30, the hardware is missing
[TRY]  lapic     enabling the local APIC
[GOOD] lapic     x2APIC (MSR), ID 0, spurious on vector 0xFF
[GOOD] perfmon   arch_perfmon version 2, 3 fixed counters of 48 bits, 8 general: 8 of 8 architectural events are counted, not timed
      putting the keyboard into service
[GOOD] input     input.keys, prio 0 (fallback)
     3 source(s) in one queue of 1024 places, 0 key(s) refused
     keysource.ps2, prio 0
     8042 on line 1, scancode set 1, layout en_US, own thread
     0 scancodes, 0 keys, 0 lost
     keysource.serial, prio 10
     the serial line by interrupt, ANSI sequences are translated, own thread
     0 bytes, 0 keys, 0 lost
     keysource.usb, prio 20
     no keyboard on USB yet
[TRY]  spectre   limiting speculation, separating the predictors
[GOOD] spectre   IBRS STIBP SSBD set and read back, IA32_SPEC_CTRL 0x0000000000000007
     15 thunks jump straight: the hardware carries it, a forced misprediction would be pure cost
     IBPB clears the predictor on every switch into a foreign space
[TRY]  power     giving clock control to the kernel instead of the firmware
[GOOD] power     the CPU reports no hwp, the firmware decides, that is not an error
[TRY]  cet       securing control flow, indirect jumps only to endbr64
[GOOD] cet   reads watching each other, a missed deadline is a finding before anything is done about it
     watchdog: device watchdog.i6300esb, armed for 15998 ms
     stop: gate at vector 0x00000000000000EF, the immediate step of every service that declares one
[TRY]  rtc       reading the real-time clock
[GOOD] rtc       rtc.cmos, prio 0 (fallback)
     MC146818 on port 0x70/0x71, BCD, 24 hours, century from register 0x32, from the FADT
     clock reads 27.11.2026 13:46:08 UTC
[TRY]  power     checking the ways to power off
[GOOD] power     power.acpi, prio 20
     ACPI mode off, SMI port 0x00B2 with 0x02
     power off over PM1a_CNT Port 0x0604, SLP_TYPa 0 from the DSDT
     restart over Port 0x0CF9 with 0x0F
     power.ports, prio 0, stands ready as a fallback
[TRY]  rng       choosing and checking the entropy source
[GOOD] rng       rng.rdseed, prio 20
     RDSEED, the CPU's own noise source, not derived
     rng.infnoise, prio 30, not asked, channels 0
     rng.virtio, prio 5, no virtio transport on this machine
  l, 5 answers, plus 5 arithmetic rules in the field
[GOOD] krypto argon2id over blake2b, fill via argon2.cpu.x86_64.avx512, 3 answers from RFC 9106 over d, i and id
[GOOD] crypto blake3 over blake3.cpu.x86_64.avx512, 9 answers from libzpool and tools/blake3.py, plus the wide core against the fallback
     four chunks in the four u32 lanes, vprold for the four rotations
     blake3.c, prio 0, stands ready as a fallback
[GOOD] crypto    crc32c over crc32c.cpu.x86_64.sse42
     crc32 from SSE4.2, eight bytes per instruction, without vector state
     crc32c.c, prio 0, stands ready as a fallback
     crc32c.cpu.x86_64.pclmul, prio 10, stands ready as a fallback
[GOOD] crypto    serpent over serpent.cpu.x86_64.avx512
     bitslice s-boxes on zmm, sixteen blocks per round under one key
     serpent.c, prio 0, stands ready as a fallback
[GOOD] crypto    aes over aes.cpu.x86_64.vaes
     vaesenc on zmm, four blocks per instruction, schedule mirrored into all lanes
     aes.c, prio 0, stands ready as a fallback
     ae   chacha20poly1305.verzahnt, prio -10, stands ready as a fallback
[GOOD] crypto    xchacha20poly1305 over xchacha20poly1305.c, 20 comparisons
     draft-irtf-cfrg-xchacha, not an RFC and expired in 2020: one vector, and the subkey checked on its own
     hchacha20 for the subkey, then the chacha20poly1305 service
[TRY]  ksym      reading the kernel symbol table from disk
[GOOD] ksym   4255 symbols from /system/ksym, searched by bisection
[TRY]  edac      reporting memory errors instead of letting them be corrected silently
[GOOD] edac      10 banks, corrected errors only when looked at, the CPU cannot do CMCI, #MC on vector 18
     the CPU separates recoverable from unrecoverable errors (SER)
     the banks were empty at start, counting begins now
     which module it was only SMBIOS says, with the address map, and that is still missing
[TRY]  tgfx      choosing the text screen
[GOOD] tgfx      tgfx.vga25, 80x25, 8 pages
     VGA-Text 80x25
     tgfx.fbnativ, prio 23, the card shows no mode of 32 bits
     tvice 4 is GPT on device 1, from LBA 434176, 192 MiB, ROOT
[TRY]  converter looking for USB serial converters
[GOOD] converter 0 channel(s)
     no serial converter on USB
[GOOD] converter converter.none, prio 0 (fallback)
     no serial converter on USB
     converter.ftdi, prio 30, the hardware is missing
     rng       source stays rng.rdseed
     RDSEED, the CPU's own noise source, not derived
     rng.infnoise, prio 30, not asked, channels 0
     rng.virtio, prio 5, no virtio transport on this machine
     rng.rdrand, prio 10, stands ready as a fallback
     rng.jitter, prio 0, stands ready as a fallback
[TRY]  fs        starting every filesystem that registered
[TRY]  root      looking for the volume that carries the root
[GOOD] root      pfs on drive 4
     module can.o at 0xFFFFFFFFD0034000, 32768 bytes
     can stays off (/system/config/modules.yaml), mods start wakes it
     module net.o at 0xFFFFFFFFD021A000, 204800 bytes
     net starts after the login (/system/config/modules.yaml)
     netd waits tage
     module fat32.o at 0xFFFFFFFFD034E000, 20480 bytes
     module floating.o at 0xFFFFFFFFD0060000, 184320 bytes
     module integer.o at 0xFFFFFFFFD02F7000, 212992 bytes
     module intel.o at 0xFFFFFFFFD0137000, 49152 bytes
     module intel_gbe.o at 0xFFFFFFFFD02E5000, 20480 bytes
     module lux.o at 0xFFFFFFFFD03E4000, 32768 bytes
     module mathe.o at 0xFFFFFFFFD05DF000, 1236992 bytes
     module modctl.o at 0xFFFFFFFFD0543000, 4096 bytes
     module nvidia.o at 0xFFFFFFFFD04A0000, 495616 bytes
     module pool.o at 0xFFFFFFFFD00C9000, 16384 bytes
     module regions.o at 0xFFFFFFFFD02B7000, 24576 bytes
     module rv64i.o at 0xFFFFFFFFD07D7000, 45056 bytes
     module state.o at 0xFFFFFFFFD09D3000, 20480 bytes
[GOOD] state  info page at 0xFFFFC7FFFFFFF000, 672 bytes, read only, 32 cores room
     module store.o at 0xFFFFFFFFD03E2000, 4096 bytes
     module tpm.o at 0xFFFFFFFFD0947000, 32768 bytes
     measure no chip: the firmware declares no TPM2 table, 28 measurements in the mirror only
     m file refused
[GOOD] lang      messages now in en
[GOOD] spectre   26 lines from /system/config/kernel.conf, now IBRS STIBP SSBD and IBPB
     rng       source stays rng.rdseed
     RDSEED, the CPU's own noise source, not derived
     rng.infnoise, prio 30, not asked, channels 0
     rng.virtio, prio 5, no virtio transport on this machine
     rng.rdrand, prio 10, stands ready as a fallback
     rng.jitter, prio 0, stands ready as a fallback
[TRY]  gfx       looking for a graphics device
[GOOD] gfx       gfx.bochs, prio 10
     frame buffer at 0x00000000FD000000, 16.0 MiB mapped, write combining, areas are filled in words of eight bytes, not over the mem service (R9-SCHIRM-10)
     the card Bochs-VBE drives this surface, the mode can be changed
     gfx.firmware, prio 20, the hardware is missing
     gfx.none, prio 0, stands ready as a fallback
[GOOD] gpu       gpu.bochs, prio 0 (fallback)
     Bochs VBE over port 0x01CE, id 0xB0C5
     at most 1920x1080 at 32 bits, drives 1 surface
     gpu.intel, prio 30, tl: the line at the start's end, registers 0x0, clock 0x0, at 1994 ms, out 28126, lost 0, in the ring 0, holder 0x0
[GOOD] tty    6 console(s) cleared, 43200 cells, page shown 0 written 0
     boot: the login stands at 1300 ms, the inits of the modules took 430 ms of it; the longest own ones:
       irq 132 ms, from 0 ms
       tty 49 ms, from 1020 ms
       buses 42 ms, from 770 ms
       tpm 41 ms, from 970 ms
       integer 22 ms, from 840 ms
       tgfx 18 ms, from 560 ms
       algebra 9 ms, from 900 ms
       blk 9 ms, from 510 ms
       dma 8 ms, from 0 ms
       ksym 7 ms, from 520 ms
[GOOD] net       1 card, 82574L, XX:XX:XX:XX:XX:XX, link is up
     net0: 82574L, XX:XX:XX:XX:XX:XX, 1000 MBit/s, 64 descriptors per ring, notified over MSI on vector 0x54, 0 arrived
     5 MSI-X table entries offered, delivery stays on the older MSI message (R3-E1000E-01)
     IEEE 1588: the window answers, TIMINCA, SYSTIM and the two TSYNC*CTL read back
[GOOD] tsn       a timetable for the outgoing frames, 8 queues withF      136   1 RSDT
WAET   0x000000007FFE2657       40   1 RSDT
DSDT   0x000000007FFE0040     9079   1 FADT
FACS   0x000000007FFE0000       64   0 FADT

SEE ALSO

logwrite, say, loggerv, top