public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 0/7] Add support for log file and version display
@ 2022-10-07 11:50 Stefano Brivio
  2022-10-07 11:51 ` [PATCH v2 1/7] Move logging functions to a new file, log.c Stefano Brivio
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Stefano Brivio @ 2022-10-07 11:50 UTC (permalink / raw)
  To: passt-dev

[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]

Patches 1/7 to 4/7 add support for logging to a file, via
-l/--log-file, with mandatory size limit and rotation.

Patches 5/7 and 7/7 fix two minor details that came up while
implementing the feature itself.

Patch 6/7 adds a --version option with a version string generated
by the Makefile using git, if available, and includes the version
string in the log header.

v2:
  - Drop patch adding new test from the series (8/8), subject to
    further discussion
  - Changes for 4/7 and 6/7 reported in change messages

Stefano Brivio (7):
  Move logging functions to a new file, log.c
  conf: Drop duplicate, diverging optstring assignments
  passt.h: Include netinet/if_ether.h before struct ctx declaration
  log, conf: Add support for logging to file
  log: Add missing function comment for trace_init()
  conf, log, Makefile: Add versioning information
  util: Check return value of lseek() while reading bound ports from
    procfs

 Makefile     |   9 +-
 README.md    |   2 +-
 conf.c       |  74 ++++++++---
 dhcp.c       |   1 +
 dhcpv6.c     |   1 +
 icmp.c       |   1 +
 isolation.c  |   1 +
 log.c        | 363 +++++++++++++++++++++++++++++++++++++++++++++++++++
 log.h        |  32 +++++
 ndp.c        |   1 +
 netlink.c    |   1 +
 packet.c     |   1 +
 passt.1      |  18 ++-
 passt.c      |   2 +
 passt.h      |   2 +
 pasta.c      |   1 +
 pcap.c       |   1 +
 tap.c        |   1 +
 tcp.c        |   1 +
 tcp_splice.c |   1 +
 udp.c        |   1 +
 util.c       | 131 ++-----------------
 util.h       |  22 +---
 23 files changed, 509 insertions(+), 159 deletions(-)
 create mode 100644 log.c
 create mode 100644 log.h

-- 
2.35.1


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

end of thread, other threads:[~2022-10-07 11:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07 11:50 [PATCH v2 0/7] Add support for log file and version display Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 1/7] Move logging functions to a new file, log.c Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 2/7] conf: Drop duplicate, diverging optstring assignments Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 3/7] passt.h: Include netinet/if_ether.h before struct ctx declaration Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 4/7] log, conf: Add support for logging to file Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 5/7] log: Add missing function comment for trace_init() Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 6/7] conf, log, Makefile: Add versioning information Stefano Brivio
2022-10-07 11:51 ` [PATCH v2 7/7] util: Check return value of lseek() while reading bound ports from procfs Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).