OProfile: Fix build error in op_model_athlon.c
authorRobert Richter <robert.richter@amd.com>
Tue, 22 Jul 2008 19:08:58 +0000 (21:08 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Jul 2008 09:48:07 +0000 (11:48 +0200)
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Cc: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/oprofile/op_model_athlon.c

index 90193b1538a03d3545c8015cb21768e0ea881dc9..284c45661ed761d9f0928d657d7ee0a7074bedb8 100644 (file)
 /* MSR to set the IBS control register APIC LVT offset */
 #define IBS_LVT_OFFSET_PCI             0x1CC
 
+/* The function interface needs to be fixed, something like add
+   data. Should then be added to linux/oprofile.h. */
+extern void oprofile_add_ibs_sample(struct pt_regs *const regs,
+                                   unsigned int * const ibs_sample, u8 code);
+
 struct ibs_fetch_sample {
        /* MSRC001_1031 IBS Fetch Linear Address Register */
        unsigned int ibs_fetch_lin_addr_low;