Hi,

I was just now able to try it, that works. Thank you.

I did apply the base.diff patch (successfully) and that's the error that I got. I'm using the debian 2.6.18 kernel source, maybe that was the problem.

-Sergei

On Tue, 12 Dec 2006, Stephane Eranian wrote:

Hello,

On Tue, Dec 12, 2006 at 12:19:56PM -0500, Sergei Shinkarev wrote:

When I do that I get the following errors.

arch/i386/perfmon/perfmon_p4.c: In function `pfm_p4_probe_pmu':
arch/i386/perfmon/perfmon_p4.c:362: error: `PFM_X86_FL_PMU_DS' undeclared
(first use in this function)
arch/i386/perfmon/perfmon_p4.c:362: error: (Each undeclared identifier is
reported only once
arch/i386/perfmon/perfmon_p4.c:362: error: for each function it appears
in.)
arch/i386/perfmon/perfmon_p4.c:371: error: `PFM_X86_FL_PMU_PEBS'
undeclared (first use in this function)
make[1]: *** [arch/i386/perfmon/perfmon_p4.o] Error 1
make: *** [arch/i386/perfmon] Error 2

Ooops, yes. you may need more stuff. So let's try this another way.

From the 2.6.19 patch grab the following:

#ifdef CONFIG_SMP
       ht_enabled = (cpus_weight(cpu_core_map[smp_processor_id()])
                  / cpu_data->x86_max_cores) > 1;
#else
       ht_enabled = 0;
#endif

And use it to replace that is_multithreading_enabled() statement.

I am not sure I understand why you are getting the error in the first
place with the 2.6.18 patch. Did you apply the base.diff patch?




On Mon, 11 Dec 2006, Stephane Eranian wrote:

On Fri, Dec 08, 2006 at 07:38:40AM +0100, Philip J. Mucci wrote:
Hi Sergei,

I haven't tried building this one, perhaps Stefane has an idea. Stefane?

Get the 2.6.19 patch, copy the perfmon_p4.c patch into your tree and
recompile.
I think this should work.


--

-Stephane


--

-Stephane


_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to