-
- Downloads
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>
Showing
- drivers/md/bcache/alloc.c 3 additions, 7 deletionsdrivers/md/bcache/alloc.c
- drivers/md/bcache/bcache.h 0 additions, 20 deletionsdrivers/md/bcache/bcache.h
- drivers/md/bcache/bset.h 4 additions, 0 deletionsdrivers/md/bcache/bset.h
- drivers/md/bcache/btree.c 24 additions, 23 deletionsdrivers/md/bcache/btree.c
- drivers/md/bcache/io.c 2 additions, 0 deletionsdrivers/md/bcache/io.c
- drivers/md/bcache/journal.c 10 additions, 4 deletionsdrivers/md/bcache/journal.c
- drivers/md/bcache/movinggc.c 5 additions, 7 deletionsdrivers/md/bcache/movinggc.c
- drivers/md/bcache/request.c 34 additions, 31 deletionsdrivers/md/bcache/request.c
- drivers/md/bcache/request.h 1 addition, 1 deletiondrivers/md/bcache/request.h
- drivers/md/bcache/super.c 1 addition, 1 deletiondrivers/md/bcache/super.c
- drivers/md/bcache/sysfs.c 1 addition, 0 deletionsdrivers/md/bcache/sysfs.c
- drivers/md/bcache/trace.c 35 additions, 10 deletionsdrivers/md/bcache/trace.c
- drivers/md/bcache/util.h 0 additions, 2 deletionsdrivers/md/bcache/util.h
- drivers/md/bcache/writeback.c 6 additions, 4 deletionsdrivers/md/bcache/writeback.c
- include/trace/events/bcache.h 241 additions, 111 deletionsinclude/trace/events/bcache.h
Loading
Please register or sign in to comment