Skip to content

Standardize c/r error reporting (v2)

serue-r/[email protected] containers 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 of 22 patches 4 repliesIn review

7 of 22 patches are in this archive. The cover letter announces 22.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22Make __ckpt_generate_fmt publiccheckpoint/checkpoint.c checkpoint/sys.c include/linux/checkpoint.h+90 -890 replies
2/22Add format and message buffers to ctx and make err_str biggercheckpoint/sys.c include/linux/checkpoint_types.h+22 -10 replies
3/22switch ckpt_generate_err to use ctx fieldscheckpoint/checkpoint.c checkpoint/sys.c include/linux/checkpoint.h+58 -370 replies
4/22Change to the new enhanced error string formatcheckpoint/checkpoint.c checkpoint/sys.c include/linux/checkpoint.h+72 -774 replies
13/22add logfd to c/r apicheckpoint/objhash.c checkpoint/sys.c include/linux/checkpoint_types.h +1 more+23 -70 replies
14/22define ckpt_error and implement ckpt_do_write_msgcheckpoint/sys.c include/linux/checkpoint.h+69 -10 replies
15/22explain locking for write_err_msgcheckpoint/checkpoint.c+21 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/22] Standardize c/r error reporting (v2)

From: Serge E. Hallyn <serue-r/[email protected]>

This patchset does the following:
1. defines ckpt_error()
2. allows users to pass a logfd into sys_checkpoint and sys_restart
3. Switches ckpt_write_err() to accepting a single enhanced format string, instead of two separate formats.
4. Has ckpt_write_err() call ckpt_error() to also log the error in the user-provided logfile and syslog.

Every ckpt_error() message is prefixed by current's global pid, current's virtual pid, number of bytes read/written, and the ctx->errno.

I'm sending just the meaningful patches this time:

	0001-Make-__ckpt_generate_fmt-public.patch
	0002-Add-format-and-message-buffers-to-ctx-and-make-err_s.patch
	0003-switch-ckpt_generate_err-to-use-ctx-fields.patch
	0004-Change-to-the-new-enhanced-error-string-format.patch
	0013-add-logfd-to-c-r-api.patch
	0014-define-ckpt_error-and-implement-ckpt_do_write_msg.patch
	0015-explain-locking-for-write_err_msg.patch

The full rebased, re-split patchset can be seen at:
http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/sergeh/linux-cr.git;a=shortlog;h=refs/heads/debuglog-clean
The patches which I am not sending are all just changing the the callers of ckpt_write_err() or ckpt_debug().

You can see all the changes relative to the patchset I sent yesterday by looking at the non-rebased branch at:
http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/sergeh/linux-cr.git;a=shortlog;h=refs/heads/debuglog-nonrebased

-serge