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

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

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

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

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

Finally, patch 8/8 introduces related tests, using pasta.

Stefano Brivio (8):
  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
  test: Add log file tests for pasta plus corresponding layout and setup

 Makefile                       |   9 +-
 README.md                      |   2 +-
 conf.c                         |  74 +++++--
 dhcp.c                         |   1 +
 dhcpv6.c                       |   1 +
 icmp.c                         |   1 +
 isolation.c                    |   1 +
 log.c                          | 362 +++++++++++++++++++++++++++++++++
 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 +
 test/lib/layout                |  39 ++++
 test/lib/setup                 |  15 +-
 test/lib/test                  |   3 +
 test/pasta_options/log_to_file |  90 ++++++++
 test/run                       |   4 +
 udp.c                          |   1 +
 util.c                         | 131 +-----------
 util.h                         |  22 +-
 28 files changed, 658 insertions(+), 160 deletions(-)
 create mode 100644 log.c
 create mode 100644 log.h
 create mode 100644 test/pasta_options/log_to_file

-- 
2.35.1


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

end of thread, other threads:[~2022-10-26  7:27 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07  0:47 [PATCH 0/8] Add support for log file, version display, and tests Stefano Brivio
2022-10-07  0:47 ` [PATCH 1/8] Move logging functions to a new file, log.c Stefano Brivio
2022-10-07  6:13   ` David Gibson
2022-10-07  0:47 ` [PATCH 2/8] conf: Drop duplicate, diverging optstring assignments Stefano Brivio
2022-10-07  6:20   ` David Gibson
2022-10-07  0:47 ` [PATCH 3/8] passt.h: Include netinet/if_ether.h before struct ctx declaration Stefano Brivio
2022-10-07  6:23   ` David Gibson
2022-10-07  7:44     ` Stefano Brivio
2022-10-07  8:40       ` David Gibson
2022-10-07 11:36         ` Stefano Brivio
2022-10-07  0:47 ` [PATCH 4/8] log, conf: Add support for logging to file Stefano Brivio
2022-10-07  6:51   ` David Gibson
2022-10-07  8:11     ` Stefano Brivio
2022-10-07  8:57       ` David Gibson
2022-10-07 10:27         ` Stefano Brivio
2022-10-07  0:47 ` [PATCH 5/8] log: Add missing function comment for trace_init() Stefano Brivio
2022-10-07  6:52   ` David Gibson
2022-10-07  0:47 ` [PATCH 6/8] conf, log, Makefile: Add versioning information Stefano Brivio
2022-10-07  6:57   ` David Gibson
2022-10-07  8:15     ` Stefano Brivio
2022-10-07  9:03       ` David Gibson
2022-10-07 10:12         ` Stefano Brivio
2022-10-07  0:47 ` [PATCH 7/8] util: Check return value of lseek() while reading bound ports from procfs Stefano Brivio
2022-10-07  6:58   ` David Gibson
2022-10-07  0:47 ` [PATCH 8/8] test: Add log file tests for pasta plus corresponding layout and setup Stefano Brivio
2022-10-07  8:37   ` David Gibson
2022-10-07  9:47     ` Stefano Brivio
2022-10-24 21:00       ` Stefano Brivio
2022-10-26  7:26         ` 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).