All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] log: add name query functions
@ 2026-10-22 18:41 Randy L Tice
  2026-10-22 18:41 ` [PATCH 1/1] " Randy L Tice
  2026-11-02 18:52 ` [PATCH 0/1] " Randy L Tice
  0 siblings, 2 replies; 5+ messages in thread
From: Randy L Tice @ 2026-10-22 18:41 UTC (permalink / raw)
  To: dev; +Cc: Stephen Hemminger

Applications that display or export DPDK logging configuration can query
numeric log levels, but have no direct way to retrieve the corresponding
level and component names. They must currently duplicate the level mapping
and cannot safely query a registered component name.

Add experimental APIs to return the canonical name for a log level and the
registered name for a log type. The returned strings are const and remain
owned by DPDK. Unit tests cover known and unknown levels and types, and the
new APIs are documented in the programmer guide and release notes.

The original downstream implementation was authored by Walt Robinson.

Validation:

- Full native Meson/Ninja build
- DPDK fast-tests / logs_autotest

Randy Tice (1):
  log: add name query functions

 app/test/test_logs.c                   | 11 +++++++++++
 doc/guides/prog_guide/log_lib.rst      |  7 +++++++
 doc/guides/rel_notes/release_26_11.rst |  5 +++++
 lib/log/log.c                          | 17 +++++++++++++++++
 lib/log/rte_log.h                      | 25 +++++++++++++++++++++++++
 5 files changed, 65 insertions(+)

-- 
2.35.6


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-16 19:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 18:41 [PATCH 0/1] log: add name query functions Randy L Tice
2026-10-22 18:41 ` [PATCH 1/1] " Randy L Tice
2026-11-12 14:01   ` Randy L Tice
2026-11-16 19:05   ` Stephen Hemminger
2026-11-02 18:52 ` [PATCH 0/1] " Randy L Tice

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.