<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in dev-kmsg</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>34433332 - docs: ABI: testing: make the files compatible with ReST output</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#34433332</link>
        <description>docs: ABI: testing: make the files compatible with ReST outputSome files over there won&apos;t parse well by Sphinx.Fix them.Acked-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt; # for IIOAcked-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;Acked-by: Jonathan Corbet &lt;corbet@lwn.net&gt;Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;Link: https://lore.kernel.org/r/58cf3c2d611e0197fb215652719ebd82ca2658db.1604042072.git.mchehab+huawei@kernel.orgSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Fri, 30 Oct 2020 07:40:39 +0000</pubDate>
        <dc:creator>Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>bc885f1a - doc:kmsg: explicitly state the return value in case of SEEK_CUR</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#bc885f1a</link>
        <description>doc:kmsg: explicitly state the return value in case of SEEK_CURThe commit 625d3449788f (&quot;Revert &quot;kernel/printk: add kmsg SEEK_CURhandling&quot;&quot;) reverted a change done to the return value in case a SEEK_CURoperation was performed for kmsg buffer based on the fact that differentuserspace apps were handling the new return value (-ESPIPE) in differentways, breaking them.At the same time -ESPIPE was the wrong decision because kmsg /does support/seek() but doesn&apos;t follow the &quot;normal&quot; behavior userspace is used to.Because of that and also considering the time -EINVAL has been used, it wasdecided to keep this way to avoid more userspace breakage.This patch adds an official statement to the kmsg documentation pointing tothe current return value for SEEK_CUR, -EINVAL, thus userspace librariesand apps can refer to it for a definitive guide on what to expect.Signed-off-by: Bruno Meneguele &lt;bmeneg@redhat.com&gt;Reviewed-by: Sergey Senozhatsky &lt;sergey.senozhatsky@gmail.com&gt;Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;Link: https://lore.kernel.org/r/20200710174423.10480-1-bmeneg@redhat.com

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Fri, 10 Jul 2020 17:44:23 +0000</pubDate>
        <dc:creator>Bruno Meneguele &lt;bmeneg@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>625d3449 - Revert &quot;kernel/printk: add kmsg SEEK_CUR handling&quot;</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#625d3449</link>
        <description>Revert &quot;kernel/printk: add kmsg SEEK_CUR handling&quot;This reverts commit 8ece3b3eb576a78d2e67ad4c3a80a39fa6708809.This commit broke userspace. Bash uses ESPIPE to determine whether ornot the file should be read using &quot;unbuffered I/O&quot;, which means reading1 byte at a time instead of 128 bytes at a time. I used to use bash toread through kmsg in a really quite nasty way:    while read -t 0.1 -r line 2&gt;/dev/null || [[ $? -ne 142 ]]; do       echo &quot;SARU $line&quot;    done &lt; /dev/kmsgThis will show all lines that can fit into the 128 byte buffer, and skiplines that don&apos;t. That&apos;s pretty awful, but at least it worked.With this change, bash now tries to do 1-byte reads, which means itskips all the lines, which is worse than before.Now, I don&apos;t really care very much about this, and I&apos;m already look fora workaround. But I did just spend an hour trying to figure out why myscripts were broken. Either way, it makes no difference to me personallywhether this is reverted, but it might be something to consider. If youdeclare that &quot;trying to read /dev/kmsg with bash is terminally stupidanyway,&quot; I might be inclined to agree with you. But do note that bashuses lseek(fd, 0, SEEK_CUR)==&gt;ESPIPE to determine whether or not it&apos;sreading from a pipe.Cc: Bruno Meneguele &lt;bmeneg@redhat.com&gt;Cc: Sergey Senozhatsky &lt;sergey.senozhatsky@gmail.com&gt;Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;Cc: David Laight &lt;David.Laight@ACULAB.COM&gt;Cc: Sergey Senozhatsky &lt;sergey.senozhatsky@gmail.com&gt;Cc: Petr Mladek &lt;pmladek@suse.com&gt;Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Mon, 22 Jun 2020 03:02:22 +0000</pubDate>
        <dc:creator>Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;</dc:creator>
    </item>
<item>
        <title>8ece3b3e - kernel/printk: add kmsg SEEK_CUR handling</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#8ece3b3e</link>
        <description>kernel/printk: add kmsg SEEK_CUR handlingUserspace libraries, e.g. glibc&apos;s dprintf(), perform a SEEK_CUR operationover any file descriptor requested to make sure the current position isn&apos;tpointing to junk due to previous manipulation of that same fd. And wheneverthat fd doesn&apos;t have support for such operation, the userspace code expects-ESPIPE to be returned.However, when the fd in question references the /dev/kmsg interface, thecurrent kernel code state returns -EINVAL instead, causing an unexpectedbehavior in userspace: in the case of glibc, when -ESPIPE is returned itgets ignored and the call completes successfully, while returning -EINVALforces dprintf to fail without performing any action over that fd:  if (_IO_SEEKOFF (fp, (off64_t)0, _IO_seek_cur, _IOS_INPUT|_IOS_OUTPUT) ==  _IO_pos_BAD &amp;&amp; errno != ESPIPE)    return NULL;With this patch we make sure to return the correct value when SEEK_CUR isrequested over kmsg and also add some kernel doc information to formalizethis behavior.Link: https://lore.kernel.org/r/20200317103344.574277-1-bmeneg@redhat.comCc: linux-kernel@vger.kernel.orgCc: rostedt@goodmis.org,Cc: David.Laight@ACULAB.COMSigned-off-by: Bruno Meneguele &lt;bmeneg@redhat.com&gt;Acked-by: Sergey Senozhatsky &lt;sergey.senozhatsky@gmail.com&gt;Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Tue, 17 Mar 2020 10:33:44 +0000</pubDate>
        <dc:creator>Bruno Meneguele &lt;bmeneg@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>085a3a8f - ABI: Update dev-kmsg documentation to match current kernel behaviour</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#085a3a8f</link>
        <description>ABI: Update dev-kmsg documentation to match current kernel behaviourCommit 5aa068ea4082 (&quot;printk: remove games with previous record flags&quot;)abolished the practice of setting the log flag to &apos;c&apos; for the firstcontinuation line and &apos;+&apos; for subsequent lines. Now all continuationlines are flagged with &apos;c&apos; and &apos;+&apos; is never used.Update the &apos;dev-kmsg&apos; documentation to remove the reference to theobsolete &apos;+&apos; flag. In addition, state explicitly that only 8 bits of the&lt;N&gt; syslog prefix are used for the facility number when writing to/dev/kmsg.Link: http://lkml.kernel.org/r/0102016cf1b26630-8e9b337b-da49-43c6-b028-4250c2fac3ef-000000@eu-west-1.amazonses.comCc: Steven Rostedt &lt;rostedt@goodmis.org&gt;Cc: linux-kernel@vger.kernel.orgSigned-off-by: James Byrne &lt;james.byrne@origamienergy.com&gt;Reviewed-by: Sergey Senozhatsky &lt;sergey.senozhatsky@gmail.com&gt;Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Mon, 02 Sep 2019 11:18:16 +0000</pubDate>
        <dc:creator>James Byrne &lt;james.byrne@origamienergy.com&gt;</dc:creator>
    </item>
<item>
        <title>6fe29354 - printk: implement support for extended console drivers</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#6fe29354</link>
        <description>printk: implement support for extended console driversprintk log_buf keeps various metadata for each message including itssequence number and timestamp.  The metadata is currently available onlythrough /dev/kmsg and stripped out before passed onto console drivers.  Wewant this metadata to be available to console drivers too so that consoleconsumers can get full information including the metadata and dictionary,which among other things can be used to detect whether messages got lostin transit.This patch implements support for extended console drivers.  Consoles canindicate that they want extended messages by setting the new CON_EXTENDEDflag and they&apos;ll be fed messages formatted the same way as /dev/kmsg. &quot;&lt;level&gt;,&lt;sequnum&gt;,&lt;timestamp&gt;,&lt;contflag&gt;;&lt;message text&gt;\n&quot;If extended consoles exist, in-kernel fragment assembly is disabled.  Thisensures that all messages emitted to consoles have full metadata includingsequence number.  The contflag carries enough information to reassemblethe fragments from the reader side trivially.  Note that this only affects/dev/kmsg.  Regular console and /proc/kmsg outputs are not affected bythis change.* Extended message formatting for console drivers is enabled iff there  are registered extended consoles.* Comment describing /dev/kmsg message format updated to add missing  contflag field and help distinguishing variable from verbatim terms.Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;Cc: David Miller &lt;davem@davemloft.net&gt;Cc: Kay Sievers &lt;kay@vrfy.org&gt;Reviewed-by: Petr Mladek &lt;pmladek@suse.cz&gt;Cc: Tetsuo Handa &lt;penguin-kernel@I-love.SAKURA.ne.jp&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Thu, 25 Jun 2015 22:01:30 +0000</pubDate>
        <dc:creator>Tejun Heo &lt;tj@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>4e79162a - doc: fix quite a few typos within Documentation</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#4e79162a</link>
        <description>doc: fix quite a few typos within DocumentationCorrect spelling typo in DocumentationsSigned-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Thu, 08 Nov 2012 12:57:35 +0000</pubDate>
        <dc:creator>Masanari Iida &lt;standby24x7@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>d39f3d77 - kmsg - export &quot;continuation record&quot; flag to /dev/kmsg</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#d39f3d77</link>
        <description>kmsg - export &quot;continuation record&quot; flag to /dev/kmsgIn some cases we are forced to store individual records for a continuationline print.Export a flag to allow the external re-construction of the line. The flagallows us to apply a similar logic externally which is used internally whenthe console, /proc/kmsg or the syslog() output is printed.  $ cat /dev/kmsg  4,165,0,-;Free swap  = 0kB  4,166,0,-;Total swap = 0kB  6,167,0,c;[  4,168,0,+;0  4,169,0,+;1  4,170,0,+;2  4,171,0,+;3  4,172,0,+;]  6,173,0,-;[0 1 2 3 ]  6,174,0,-;Console: colour VGA+ 80x25  6,175,0,-;console [tty0] enabledSigned-off-by: Kay Sievers &lt;kay@vrfy.org&gt;Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Tue, 17 Jul 2012 01:35:30 +0000</pubDate>
        <dc:creator>Kay Sievers &lt;kay@vrfy.org&gt;</dc:creator>
    </item>
<item>
        <title>3b552b92 - kmsg - add Documentation/ABI/testing/dev-kmsg</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/dev-kmsg#3b552b92</link>
        <description>kmsg - add Documentation/ABI/testing/dev-kmsgSigned-off-by: Kay Sievers &lt;kay@vrfy.org&gt;Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/dev-kmsg</description>
        <pubDate>Tue, 08 May 2012 16:50:50 +0000</pubDate>
        <dc:creator>Kay Sievers &lt;kay@vrfy.org&gt;</dc:creator>
    </item>
</channel>
</rss>
