Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158269
b: refs/heads/master
c: 8178d00
h: refs/heads/master
i:
  158267: cdfd931
v: v3
  • Loading branch information
Ingo Molnar committed Aug 18, 2009
1 parent 8804960 commit 69d2328
Show file tree
Hide file tree
Showing 39 changed files with 1,527 additions and 1,133 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20002ded4d937ca87aca6253b874920a96a763c4
refs/heads/master: 8178d000506612e426753679eca1f9737d562d49
10 changes: 10 additions & 0 deletions trunk/arch/x86/include/asm/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ union cpuid10_edx {
#define MSR_ARCH_PERFMON_FIXED_CTR2 0x30b
#define X86_PMC_IDX_FIXED_BUS_CYCLES (X86_PMC_IDX_FIXED + 2)

/*
* We model BTS tracing as another fixed-mode PMC.
*
* We choose a value in the middle of the fixed counter range, since lower
* values are used by actual fixed counters and higher values are used
* to indicate other overflow conditions in the PERF_GLOBAL_STATUS msr.
*/
#define X86_PMC_IDX_FIXED_BTS (X86_PMC_IDX_FIXED + 16)


#ifdef CONFIG_PERF_COUNTERS
extern void init_hw_perf_counters(void);
extern void perf_counters_lapic_init(void);
Expand Down
Loading

0 comments on commit 69d2328

Please sign in to comment.