Skip to content

introduction of dmesg support

Jean-Christophe PLAGNIOL-VILLARD barebox linux-arm-kernel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest11 patches 5 repliesIn review
  2. v59 patches 0 repliesSuperseded
  3. v49 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v39 patches0 repliesSuperseded
v26 patches0 repliesSuperseded
v19 patches6 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11kfifo: introduce kfifo_dump_str to dump the fifoinclude/kfifo.h lib/kfifo.c+23 -00 replies
1/11kfifo: introduce kfifo_dump_str to dump the fifoinclude/kfifo.h lib/kfifo.c+23 -00 replies
2/11console: switch to kfifo_dump_strcommon/console.c+6 -30 replies
2/11console: switch to kfifo_dump_strcommon/console.c+6 -30 replies
3/11intoduce dmesg to print the barebox printk to dmesg ring buffercommands/Kconfig common/console.c drivers/base/driver.c +3 more+203 -340 replies
3/11intoduce dmesg to print the barebox printk to dmesg ring buffercommands/Kconfig common/console.c drivers/base/driver.c +3 more+203 -341 reply
4/11startup: switch to pr_xxxcommon/startup.c+2 -20 replies
4/11startup: switch to pr_xxxcommon/startup.c+2 -20 replies
5/11at91: clock switch to pr_infoarch/arm/mach-at91/clock.c+1 -10 replies
5/11at91: clock switch to pr_infoarch/arm/mach-at91/clock.c+1 -10 replies
6/11meminfo: switch to pr_xxxcommon/meminfo.c+3 -30 replies
6/11meminfo: switch to pr_xxxcommon/meminfo.c+3 -30 replies
7/11net/console: switch to pr_xxxnet/netconsole.c+2 -20 replies
7/11net/console: switch to pr_xxxnet/netconsole.c+2 -23 replies
8/11startup: switch to pr_xxxcommon/startup.c+4 -40 replies
8/11startup: switch to pr_xxxcommon/startup.c+4 -40 replies
9/11barebox_banner: switch to pr_infocommon/version.c+2 -20 replies
9/11barebox_banner: switch to pr_infocommon/version.c+2 -20 replies
10/11net/phy: convert to pr_infodrivers/net/phy/phy.c+1 -10 replies
10/11net/phy: convert to pr_infodrivers/net/phy/phy.c+1 -10 replies
11/11ext4: switch debug and printf to dev_xxxfs/ext4/ext4_common.c+6 -60 replies
11/11ext4: switch debug and printf to dev_xxxfs/ext4/ext4_common.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH 00/11 v6] introduction of dmesg support

HI,

v6: more switch
use kfifo_put instead of kfifo_putc
as we already now the size to copy

v5: rebase on master
add missing kern_levels.h

v4: remove a debug info

v3: add more swtich

we currently have 2 fifo at comsole level one for input one for output we fill the output fifo before any console is registered and then empty it

Now we introduce a new mecanism as in the kernel dmesg

we will always fill the dmesg kfifo with drivers output

as in barebox we have 2 world

device/drivers and applicaiotn (commands)

the verbositty of the printk can be selected at runtime and compilation

so for now on drivers will have to use pr_xxx and dev_xxx and application will use printf

dmesg will print the kfifo at any time

we will extend this later with more control of what the drivers output on the console or just in the fifo

This new feature is optionnal if dmes is disable we continue as before

The following changes since commit 092bfd5eb55d1b2d7ed098aa9723a2fa63b86192:

fix another brown paper bag bug introduced with compile time loglevel (2013-03-06 23:53:04 +0100)

are available in the git repository at:

git://git.jcrosoft.org/barebox.git delivery/dmesg

for you to fetch changes up to 1ca2fe80fdcb5c73ffbb95246666060f45c0bfe8:

ext4: switch debug and printf to dev_xxx (2013-03-08 05:48:48 +0800)

----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (11):
kfifo: introduce kfifo_dump_str to dump the fifo
console: switch to kfifo_dump_str
intoduce dmesg to print the barebox printk to dmesg ring buffer
startup: switch to pr_xxx
at91: clock switch to pr_info
meminfo: switch to pr_xxx
net/console: switch to pr_xxx
startup: switch to pr_xxx
barebox_banner: switch to pr_info
net/phy: convert to pr_info
ext4: switch debug and printf to dev_xxx

 arch/arm/mach-at91/clock.c      |    2 +-
 commands/Kconfig                |   19 +++++++++++++++++++
 common/console.c                |  116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 common/meminfo.c                |    6 +++---
 common/startup.c                |   12 ++++++------
 common/version.c                |    4 ++--
 drivers/base/driver.c           |   16 ++++++++++------
 drivers/net/phy/phy.c           |    2 +-
 fs/ext4/ext4_common.c           |   12 ++++++------
 include/kfifo.h                 |    2 ++
 include/linux/barebox-wrapper.h |   11 -----------
 include/linux/kern_levels.h     |   25 +++++++++++++++++++++++++
 include/printk.h                |   59 ++++++++++++++++++++++++++++++++++++++++++-----------------
 lib/kfifo.c                     |   21 +++++++++++++++++++++
 net/netconsole.c                |    4 ++--
 15 files changed, 253 insertions(+), 58 deletions(-)
 create mode 100644 include/linux/kern_levels.h

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox