[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v2 00/10] Update libukdebug printing



As discussed and voted with
https://lists.xenproject.org/archives/html/minios-devel/2018-07/msg00397.html
this patch series makes uk_printk() as the new default output for
Unikraft messages:

uk_printk(lvl, fmt, ...)
 - where lvl is the level parameter as known from uk_printd() before
   (CRIT, ERR, WARN, INFO, but no EXTRA).

uk_printd(fmt, ...)
 - becomes a stand-alone debug print that is only enabled if a file is
   compiled with "-DUK_DEBUG". It is roughly a replacement for the
   EXTRA level that we had before.

Changes since v1:
 - Use ukplat_coutk() for plat/linuxu platform interface
 - Add line endings for some messages in plat/xen/events

Simon Kuenzer (10):
  lib/ukdebug: Introduce uk_pr_*() wrapper for uk_printd()
  lib/ukboot: Use printf() for banner and weak main()
  lib/ukdebug: Move 'Calling main...' message before calling main
  plat/linuxu: Use ukplat_coutk() for command line interaction
  plat/*: Replace uk_printk() with uk_pr_*() equivalents
  plat/*: Replace uk_printd() with uk_pr_*() equivalents
  lib/ukdebug: Remove unused uk_printkd()
  lib/ukdebug: Swap uk_printk() and uk_printd()
  lib/ukdebug: uk_printd() and uk_printk() use same format engine
  lib/ukboot: Correct line ending of UK_CRASH() messages

 lib/nolibc/getopt.c               |   2 +-
 lib/ukallocbbuddy/bbuddy.c        |  30 +++----
 lib/ukboot/boot.c                 | 112 +++++++++++------------
 lib/ukbus/bus.c                   |   8 +-
 lib/ukbus/include/uk/bus.h        |   2 +-
 lib/ukdebug/Config.uk             |  54 ++++++-----
 lib/ukdebug/exportsyms.uk         |   8 +-
 lib/ukdebug/hexdump.c             |  43 ++++-----
 lib/ukdebug/include/uk/assert.h   |  10 +--
 lib/ukdebug/include/uk/hexdump.h  |  40 ++++-----
 lib/ukdebug/include/uk/print.h    | 159 +++++++++++++++++---------------
 lib/ukdebug/print.c               | 185 ++++++++++++++++++--------------------
 lib/uklock/include/uk/semaphore.h |  16 ++--
 lib/uklock/semaphore.c            |   4 +-
 lib/ukmpi/mbox.c                  |   8 +-
 lib/uksched/sched.c               |   6 +-
 lib/uksched/thread.c              |   4 +-
 lib/ukschedcoop/schedcoop.c       |  13 ++-
 lib/ukswrand/mwc.c                |   2 +-
 lib/vfscore/file.c                |  10 +--
 plat/common/arm/cpu_native.c      |   4 +-
 plat/common/arm/pl011.c           |   6 +-
 plat/common/arm/time.c            |   3 +-
 plat/common/arm/traps.c           |  31 ++++---
 plat/common/pci_bus.c             |  40 ++++-----
 plat/common/sw_ctx.c              |   2 +-
 plat/common/x86/trace.c           |  25 +++---
 plat/common/x86/traps.c           |  18 ++--
 plat/drivers/virtio/virtio_ring.c |   8 +-
 plat/kvm/arm/setup.c              |  37 ++++----
 plat/kvm/irq.c                    |   2 +-
 plat/kvm/shutdown.c               |   2 +-
 plat/kvm/x86/setup.c              |  17 ++--
 plat/kvm/x86/tscclock.c           |   5 +-
 plat/linuxu/lcpu.c                |   2 +-
 plat/linuxu/setup.c               |  34 ++++---
 plat/linuxu/shutdown.c            |   2 +-
 plat/xen/arm/arch_events.c        |   2 +-
 plat/xen/arm/arch_time.c          |   8 +-
 plat/xen/arm/setup.c              |  14 +--
 plat/xen/console.c                |   4 +-
 plat/xen/events.c                 |  24 ++---
 plat/xen/gnttab.c                 |  11 ++-
 plat/xen/x86/arch_time.c          |   2 +-
 plat/xen/x86/gnttab.c             |   4 +-
 plat/xen/x86/mm.c                 |  57 ++++++------
 plat/xen/x86/setup.c              |  12 +--
 plat/xen/xenbus/client.c          |   2 +-
 plat/xen/xenbus/xenbus.c          |  25 +++---
 plat/xen/xenbus/xs.c              |   3 +-
 plat/xen/xenbus/xs_comms.c        |  37 ++++----
 51 files changed, 572 insertions(+), 587 deletions(-)

-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.