Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112841
b: refs/heads/master
c: 81faaae
h: refs/heads/master
i:
  112839: 273a7e2
v: v3
  • Loading branch information
Ingo Molnar committed Sep 10, 2008
1 parent 35317aa commit 0c5879f
Show file tree
Hide file tree
Showing 11 changed files with 1,302 additions and 529 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: f69feff720497237ae9dd2f4604921bd3080c421
refs/heads/master: 81faaae45701484bd7368336e02f2a846153b22f
18 changes: 18 additions & 0 deletions trunk/arch/x86/Kconfig.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,21 @@ config CPU_SUP_UMC_32
depends on !64BIT
help
This enables extended support for UMC processors

config X86_DS
bool "Debug Store support"
default y
help
Add support for Debug Store.
This allows the kernel to provide a memory buffer to the hardware
to store various profiling and tracing events.

config X86_PTRACE_BTS
bool "ptrace interface to Branch Trace Store"
default y
depends on (X86_DS && X86_DEBUGCTLMSR)
help
Add a ptrace interface to allow collecting an execution trace
of the traced task.
This collects control flow changes in a (cyclic) buffer and allows
debuggers to fill in the gaps and show an execution trace of the debuggee.
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/cpu/intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,11 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
set_cpu_cap(c, X86_FEATURE_BTS);
if (!(l1 & (1<<12)))
set_cpu_cap(c, X86_FEATURE_PEBS);
ds_init_intel(c);
}

if (cpu_has_bts)
ds_init_intel(c);
ptrace_bts_init_intel(c);

/*
* See if we have a good local APIC by checking for buggy Pentia,
Expand Down
Loading

0 comments on commit 0c5879f

Please sign in to comment.