Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218635
b: refs/heads/master
c: 96681fc
h: refs/heads/master
i:
  218633: d2bfaea
  218631: 7148736
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Oct 22, 2010
1 parent 000d476 commit 8ee6340
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: f80c9e304b8e8062230b0cda2c2fdd586149c771
refs/heads/master: 96681fc3c9e7d1f89ab64e5eec40b6467c97680f
9 changes: 6 additions & 3 deletions trunk/arch/x86/kernel/cpu/perf_event_intel_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ static void fini_debug_store_on_cpu(int cpu)
static int alloc_pebs_buffer(int cpu)
{
struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds;
int node = cpu_to_node(cpu);
int max, thresh = 1; /* always use a single PEBS record */
void *buffer;

if (!x86_pmu.pebs)
return 0;

buffer = kzalloc(PEBS_BUFFER_SIZE, GFP_KERNEL);
buffer = kmalloc_node(PEBS_BUFFER_SIZE, GFP_KERNEL | __GFP_ZERO, node);
if (unlikely(!buffer))
return -ENOMEM;

Expand Down Expand Up @@ -114,13 +115,14 @@ static void release_pebs_buffer(int cpu)
static int alloc_bts_buffer(int cpu)
{
struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds;
int node = cpu_to_node(cpu);
int max, thresh;
void *buffer;

if (!x86_pmu.bts)
return 0;

buffer = kzalloc(BTS_BUFFER_SIZE, GFP_KERNEL);
buffer = kmalloc_node(BTS_BUFFER_SIZE, GFP_KERNEL | __GFP_ZERO, node);
if (unlikely(!buffer))
return -ENOMEM;

Expand Down Expand Up @@ -150,9 +152,10 @@ static void release_bts_buffer(int cpu)

static int alloc_ds_buffer(int cpu)
{
int node = cpu_to_node(cpu);
struct debug_store *ds;

ds = kzalloc(sizeof(*ds), GFP_KERNEL);
ds = kmalloc_node(sizeof(*ds), GFP_KERNEL | __GFP_ZERO, node);
if (unlikely(!ds))
return -ENOMEM;

Expand Down

0 comments on commit 8ee6340

Please sign in to comment.