Standardize c/r error reporting
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | ckpt_write_err: use single format with %(T) style tokenscheckpoint/ checkpoint/ include/ | +110 | 5 replies | |
| 2/17 | ckpt_write_err update arch/x86/mm/checkpoint.carch/ | +2 | 0 replies | |
| 3/17 | ckpt_write_err update checkpoint/checkpoint.ccheckpoint/ | +14 | 0 replies | |
| 4/17 | ckpt_write_err update checkpoint/files.ccheckpoint/ | +9 | 0 replies | |
| 5/17 | ckpt_write_err update checkpoint/memory.ccheckpoint/ | +4 | 0 replies | |
| 6/17 | ckpt_write_err update checkpoint/objhash.ccheckpoint/ | +4 | 0 replies | |
| 7/17 | ckpt_write_err update checkpoint/process.ccheckpoint/ | +4 | 0 replies | |
| 8/17 | ckpt_write_err update checkpoint/signal.ccheckpoint/ | +5 | 0 replies | |
| 9/17 | ckpt_write_err update fs/eventpoll.cfs/ | +1 | 0 replies | |
| 10/17 | define function to print error messages to user logcheckpoint/ checkpoint/ checkpoint/ +3 more | +103 | 1 reply | |
| 11/17 | have restore_debug_free use ckpt_errorcheckpoint/ | +7 | 0 replies | |
| 12/17 | use ckpt_error in checkpoint/restart.ccheckpoint/ | +59 | 0 replies | |
| 13/17 | ckpt_error in checkpoint/files.ccheckpoint/ | +4 | 0 replies | |
| 14/17 | ckpt_error in checkpoint/process.ccheckpoint/ | +5 | 0 replies | |
| 15/17 | ckpt_error in ipc/checkpoint_msg.cipc/ | +1 | 0 replies | |
| 16/17 | ckpt_error in ipc/checkpoint_sem.cipc/ | +1 | 0 replies | |
| 17/17 | ckpt_error in ipc/checkpoint_shm.cipc/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/17] Standardize c/r error reporting
From: Serge E. Hallyn <serue-r/[email protected]>
This patchset
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 sure we'll want another round if only to alter the format, but I'm finding it very useful as is.
(As more callers are added I expect we'll want to add %(A) to the format to indicate active_pid should be printed).
-serge