Skip to content

Standardize c/r error reporting

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17ckpt_write_err: use single format with %(T) style tokenscheckpoint/checkpoint.c checkpoint/sys.c include/linux/checkpoint.h+110 -1035 replies
2/17ckpt_write_err update arch/x86/mm/checkpoint.carch/x86/mm/checkpoint.c+2 -20 replies
3/17ckpt_write_err update checkpoint/checkpoint.ccheckpoint/checkpoint.c+14 -140 replies
4/17ckpt_write_err update checkpoint/files.ccheckpoint/files.c+9 -80 replies
5/17ckpt_write_err update checkpoint/memory.ccheckpoint/memory.c+4 -40 replies
6/17ckpt_write_err update checkpoint/objhash.ccheckpoint/objhash.c+4 -40 replies
7/17ckpt_write_err update checkpoint/process.ccheckpoint/process.c+4 -40 replies
8/17ckpt_write_err update checkpoint/signal.ccheckpoint/signal.c+5 -40 replies
9/17ckpt_write_err update fs/eventpoll.cfs/eventpoll.c+1 -10 replies
10/17define function to print error messages to user logcheckpoint/checkpoint.c checkpoint/objhash.c checkpoint/sys.c +3 more+103 -131 reply
11/17have restore_debug_free use ckpt_errorcheckpoint/restart.c+7 -50 replies
12/17use ckpt_error in checkpoint/restart.ccheckpoint/restart.c+59 -310 replies
13/17ckpt_error in checkpoint/files.ccheckpoint/files.c+4 -20 replies
14/17ckpt_error in checkpoint/process.ccheckpoint/process.c+5 -50 replies
15/17ckpt_error in ipc/checkpoint_msg.cipc/checkpoint_msg.c+1 -10 replies
16/17ckpt_error in ipc/checkpoint_sem.cipc/checkpoint_sem.c+1 -10 replies
17/17ckpt_error in ipc/checkpoint_shm.cipc/checkpoint_shm.c+1 -10 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/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