aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/ds_selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/ds_selftest.c')
-rw-r--r--arch/x86/kernel/ds_selftest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/ds_selftest.c b/arch/x86/kernel/ds_selftest.c
index 8c46fbf38c46..e5a263c8a14c 100644
--- a/arch/x86/kernel/ds_selftest.c
+++ b/arch/x86/kernel/ds_selftest.c
@@ -10,11 +10,12 @@
10 10
11#include <linux/kernel.h> 11#include <linux/kernel.h>
12#include <linux/string.h> 12#include <linux/string.h>
13#include <linux/smp.h>
13 14
14#include <asm/ds.h> 15#include <asm/ds.h>
15 16
16 17
17#define DS_SELFTEST_BUFFER_SIZE 1021 /* Intentionally chose an odd size. */ 18#define BUFFER_SIZE 1021 /* Intentionally chose an odd size. */
18 19
19 20
20static int ds_selftest_bts_consistency(const struct bts_trace *trace) 21static int ds_selftest_bts_consistency(const struct bts_trace *trace)
@@ -125,12 +126,12 @@ int ds_selftest_bts(void)
125 struct bts_tracer *tracer; 126 struct bts_tracer *tracer;
126 int error = 0; 127 int error = 0;
127 void *top; 128 void *top;
128 unsigned char buffer[DS_SELFTEST_BUFFER_SIZE]; 129 unsigned char buffer[BUFFER_SIZE];
129 130
130 printk(KERN_INFO "[ds] bts selftest..."); 131 printk(KERN_INFO "[ds] bts selftest...");
131 132
132 tracer = ds_request_bts(NULL, buffer, DS_SELFTEST_BUFFER_SIZE, 133 tracer = ds_request_bts_cpu(smp_processor_id(), buffer, BUFFER_SIZE,
133 NULL, (size_t)-1, BTS_KERNEL); 134 NULL, (size_t)-1, BTS_KERNEL);
134 if (IS_ERR(tracer)) { 135 if (IS_ERR(tracer)) {
135 error = PTR_ERR(tracer); 136 error = PTR_ERR(tracer);
136 tracer = NULL; 137 tracer = NULL;