Skip to content

Commit

Permalink
perf: Remove pointless breakpoint union
Browse files Browse the repository at this point in the history
Remove pointless union in the breakpoint field of hw_perf_event.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Frederic Weisbecker committed Feb 27, 2010
1 parent b67577d commit dd8b1cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,8 @@ struct hw_perf_event {
struct hrtimer hrtimer;
};
#ifdef CONFIG_HAVE_HW_BREAKPOINT
union { /* breakpoint */
struct arch_hw_breakpoint info;
};
/* breakpoint */
struct arch_hw_breakpoint info;
#endif
};
atomic64_t prev_count;
Expand Down
8 changes: 5 additions & 3 deletions lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,13 @@ config LOCK_STAT

For more details, see Documentation/lockstat.txt

You can analyze lock events with "perf lock", subcommand of perf.
If you want to use "perf lock", you need to turn on CONFIG_EVENT_TRACING.
This also enables lock events required by "perf lock",
subcommand of perf.
If you want to use "perf lock", you also need to turn on
CONFIG_EVENT_TRACING.

CONFIG_LOCK_STAT defines "contended" and "acquired" lock events.
(CONFIG_LOCKDEP defines "acquire" and "release" events.)
(CONFIG_LOCKDEP defines "acquire" and "release" events.)

config DEBUG_LOCKDEP
bool "Lock dependency engine debugging"
Expand Down

0 comments on commit dd8b1cf

Please sign in to comment.