Hi,

Sorry for  the delay in responding.

Basically you need to create the stub interrupt handler
(pmu_interrupt) in entry_64.S

You also need to program the intr gate in i8259_64.c

Finally you need to program  the interrupt vector in the APIC entry
for the PMU. This is accomplished
by the perfmon code on demand (arch/x86/perfmon/perfmon.c).



On Mon, Apr 21, 2008 at 8:58 AM, Amithash Prasad <[EMAIL PROTECTED]> wrote:
> Anyway, I figured it out. Thanks a lot.
>
>
>
> On Sun, Apr 20, 2008 at 5:20 PM, Amithash Prasad <[EMAIL PROTECTED]> wrote:
> > Actually, how this is set up in the kernel. I was looking at the kernel
> patch and realized most of it. But some things still stay elusive. Like when
> and how is the local apic is told to not mask the PMU interrupt and where
> the ISR is.
> >
> >
> >
> >
> >
> > On Sun, Apr 20, 2008 at 5:09 PM, stephane eranian <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hello,
> > >
> > > Are you talking of how this is set up in the kernel or in user programs?
> > >
> > > For user programs, I recommend you take a look at the example in
> > > libpfm and in particular
> > > task_smpl.c.
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Sun, Apr 20, 2008 at 7:21 AM, Amithash Prasad <[EMAIL PROTECTED]>
> wrote:
> > > > Hi,
> > > >
> > > > I was going through the kernel patch 2.6.24 and trying to understand
> how
> > > > perfmon2 sets up PMU interrupts.
> > > > Can someone explain to me the process. I was trying this out as a
> project to
> > > > no avail. The interrupt does not seem to be occuring.
> > > >
> > > > --
> > > > Amithash E. Prasad
> > > > ECE Department, CU
> > > > http://eces.colorado.edu/~prasadae
> > >
> > >
> > >
> > > >
> -------------------------------------------------------------------------
> > > >  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > > >  Don't miss this year's exciting event. There's still time to save
> $100.
> > > >  Use priority code J8TL2D2.
> > > >
> > > >
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > > > _______________________________________________
> > > >  perfmon2-devel mailing list
> > > >  [email protected]
> > > >  https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
> > > >
> > > >
> > >
> >
> >
> >
> > --
> >
> >
> >
> > Amithash E. Prasad
> > ECE Department, CU
> > http://eces.colorado.edu/~prasadae
>
>
>
> --
>
> Amithash E. Prasad
> ECE Department, CU
> http://eces.colorado.edu/~prasadae

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to