Skip to content

static keys for debugobjects

Stephen Boyd lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3timer: Move debugobjects.h include to timer.cinclude/linux/timer.h kernel/timer.c+1 -10 replies
2/3init: Initialize jump_labels before early parametersinit/main.c+2 -20 replies
3/3debugobjects: Use static keys for debug_objects_enabledinclude/linux/debugobjects.h lib/debugobjects.c+110 -570 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC/PATCH 0/3] static keys for debugobjects

Building in debugobjects support without enabling debugobjects by default is useful in test scenarios where recompiling isn't an option. Moving this interface to static keys/jump labels should allow us to always have this code compiled in without worrying about performance overhead when it's disabled.

RFC because I don't have any numbers to back this up and it's debug code. I took a stab at using perf but I don't think the x86 machine I was using had good enough stuff to see i-cache misses or things like that. Hints on what to do to actually prove this is useful are appreciated.

This is based on the perf/jump-labels branch in the tip tree:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/jump-labels

Stephen Boyd (3):
timer: Move debugobjects.h include to timer.c
init: Initialize jump_labels before early parameters
debugobjects: Use static keys for debug_objects_enabled

 include/linux/debugobjects.h |   94 +++++++++++++++++++++++++++++++++++++-----
 include/linux/timer.h        |    1 -
 init/main.c                  |    4 +-
 kernel/timer.c               |    1 +
 lib/debugobjects.c           |   73 ++++++++++++--------------------
 5 files changed, 113 insertions(+), 60 deletions(-)
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.