bcache: Fix/revamp tracepoints
authorKent Overstreet <koverstreet@google.com>
Fri, 26 Apr 2013 22:39:55 +0000 (15:39 -0700)
committerKent Overstreet <koverstreet@google.com>
Thu, 27 Jun 2013 00:09:15 +0000 (17:09 -0700)
commitc37511b863f36c1cc6e18440717fd4cc0e881b8a
tree64d82c648bd092f38c35c4b808411bc1cdb3a9f0
parent5794351146199b9ac67a5ab1beab82be8bfd7b5d
bcache: Fix/revamp tracepoints

The tracepoints were reworked to be more sensible, and fixed a null
pointer deref in one of the tracepoints.

Converted some of the pr_debug()s to tracepoints - this is partly a
performance optimization; it used to be that with DEBUG or
CONFIG_DYNAMIC_DEBUG pr_debug() was an empty macro; but at some point it
was changed to an empty inline function.

Some of the pr_debug() statements had rather expensive function calls as
part of the arguments, so this code was getting run unnecessarily even
on non debug kernels - in some fast paths, too.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
15 files changed:
drivers/md/bcache/alloc.c
drivers/md/bcache/bcache.h
drivers/md/bcache/bset.h
drivers/md/bcache/btree.c
drivers/md/bcache/io.c
drivers/md/bcache/journal.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/request.c
drivers/md/bcache/request.h
drivers/md/bcache/super.c
drivers/md/bcache/sysfs.c
drivers/md/bcache/trace.c
drivers/md/bcache/util.h
drivers/md/bcache/writeback.c
include/trace/events/bcache.h