aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2012-06-26 17:38:39 -0400
committerIngo Molnar <mingo@kernel.org>2012-07-05 15:55:58 -0400
commit3e0091e2b6f8cd59e567f247e345a3a6ad1f6e7e (patch)
tree5004938b4b23224fc6ac17c31029c489abf99500
parentc93dc84cbe32435be3ffa2fbde355eff94955c32 (diff)
perf/x86: Save a few bytes in 'struct x86_pmu'
All these are basically boolean flags, use a bitfield to save a few bytes. Suggested-by: Borislav Petkov <bp@amd64.org> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-vsevd5g8lhcn129n3s7trl7r@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/kernel/cpu/perf_event.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.h b/arch/x86/kernel/cpu/perf_event.h
index 3f5c66904355..a15df4be151f 100644
--- a/arch/x86/kernel/cpu/perf_event.h
+++ b/arch/x86/kernel/cpu/perf_event.h
@@ -374,8 +374,11 @@ struct x86_pmu {
374 /* 374 /*
375 * Intel DebugStore bits 375 * Intel DebugStore bits
376 */ 376 */
377 int bts, pebs; 377 int bts :1,
378 int bts_active, pebs_active, pebs_broken; 378 bts_active :1,
379 pebs :1,
380 pebs_active :1,
381 pebs_broken :1;
379 int pebs_record_size; 382 int pebs_record_size;
380 void (*drain_pebs)(struct pt_regs *regs); 383 void (*drain_pebs)(struct pt_regs *regs);
381 struct event_constraint *pebs_constraints; 384 struct event_constraint *pebs_constraints;