Skip to content

Standardize c/r error reporting (v3)

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12define a new set of functions for error and debug loggingcheckpoint/sys.c include/linux/checkpoint.h include/linux/checkpoint_types.h+254 -04 replies
2/12switch ckpt_write_err callers to ckpt_errarch/x86/mm/checkpoint.c checkpoint/checkpoint.c+24 -190 replies
3/12checkpoint/files.c ckpt_write_err->ckpt_errcheckpoint/files.c+8 -80 replies
4/12checkpoint/memory.c ckpt_write_err->ckpt_errcheckpoint/memory.c+5 -50 replies
5/12checkpoint/objhash.c ckpt_write_err->ckpt_errcheckpoint/objhash.c+4 -40 replies
6/12checkpoint/process.c ckpt_write_err->ckpt_errcheckpoint/process.c+4 -40 replies
7/12checkpoint/signal.c ckpt_write_err->ckpt_errcheckpoint/signal.c+4 -40 replies
8/12drivers/char/tty_io.c ckpt_write_err->ckpt_errdrivers/char/tty_io.c+7 -70 replies
9/12fs/eventpoll.c ckpt_write_err->ckpt_errfs/eventpoll.c+1 -10 replies
10/12net/{,unix}/checkpoint.c ckpt_write_err->ckpt_errnet/checkpoint.c net/unix/checkpoint.c+8 -70 replies
11/12remove ckpt_write_errcheckpoint/checkpoint.c include/linux/checkpoint.h+0 -1890 replies
12/12add logfd to c/r apicheckpoint/objhash.c checkpoint/sys.c include/linux/checkpoint_types.h +1 more+24 -90 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchMatt Helsley
1/12A-b
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Standardize c/r error reporting (v3)

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

Here is a completely new approach, basically verbatim implementing Oren's recipe from last Friday. It only implements the error part to replace ckpt_write_err. The intent would be for ckpt_debug to also be replaced by ckpt_msg() which would be similar to ckpt_err() except adding a prefix to the message.

My goal is for users to be able to get real errors printed to a logfile for checkpoint and restart (not have to check dmesg) in ckpt-v19, especially for things like 'oh you're on a btrfs which is not supported'. Having to check dmesg seems to walk right into the 'toy implementation' argument.

Thanks Oren for the detailed explanation of what you want to see, and Matt for several excellent cleanup suggestions.

If there are no major objections then I'll add ckpt_err()s at restart on top of this patchset, but probably hold off on converting ckpt_debugs for a bit. Note that the heavyweight semaphore means that for real debugging we're only increasing the chances of hiding bugs with the debugging, so I'm open to the idea of keeping ckpt_debug() as is.

You can fetch this tree as branch nov2.6 of
git://git.kernel.org/pub/scm/linux/kernel/git/sergeh/linux-cr.git
or see gitweb at http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/sergeh/linux-cr.git;a=shortlog;h=refs/heads/nov2.6

thanks,
-serge