Standardize c/r error reporting (v2)
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | Make __ckpt_generate_fmt publiccheckpoint/ checkpoint/ include/ | +90 | 0 replies | |
| 2/22 | Add format and message buffers to ctx and make err_str biggercheckpoint/ include/ | +22 | 0 replies | |
| 3/22 | switch ckpt_generate_err to use ctx fieldscheckpoint/ checkpoint/ include/ | +58 | 0 replies | |
| 4/22 | Change to the new enhanced error string formatcheckpoint/ checkpoint/ include/ | +72 | 4 replies | |
| 13/22 | add logfd to c/r apicheckpoint/ checkpoint/ include/ +1 more | +23 | 0 replies | |
| 14/22 | define ckpt_error and implement ckpt_do_write_msgcheckpoint/ include/ | +69 | 0 replies | |
| 15/22 | explain locking for write_err_msgcheckpoint/ | +21 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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