• Tejun Heo's avatar
    printk: implement support for extended console drivers · 6fe29354
    Tejun Heo authored
    printk log_buf keeps various metadata for each message including its
    sequence number and timestamp.  The metadata is currently available only
    through /dev/kmsg and stripped out before passed onto console drivers.  We
    want this metadata to be available to console drivers too so that console
    consumers can get full information including the metadata and dictionary,
    which among other things can be used to detect whether messages got lost
    in transit.
    
    This patch implements support for extended console drivers.  Consoles can
    indicate that they want extended messages by setting the new CON_EXTENDED
    flag and they'll be fed messages formatted the same way as /dev/kmsg.
    
     "<level>,<sequnum>,<timestamp>,<contflag>;<message text>\n"
    
    If extended consoles exist, in-kernel fragment assembly is disabled.  This
    ensures that all messages emitted to consoles have full metadata including
    sequence number.  The contflag carries enough information to reassemble
    the fragmen...
    6fe29354
dev-kmsg 4.57 KB