Thanks for the information but that does not answer the question. I am not looking for source code. I'll repeat the question here but first I will try to give some background that could narrow the search for you.
I am trying to analyze the number of L1 cache misses that are occurring in my application. I need to know what values (numbers) I put in the event code field of the performance monitor control registers. They are documented in "P1022 QorIQ Integrated Processor Reference Manual, Rev. 2, 04/2013" on pages 1963 and 1964. The fields for these registers (PERFMON_PMLCA1, PERFMON_PMLCA2, PERFMON_PMLCA3, etc.) are described on page 1969. The particular field I am asking about is:
Bits: 9-15
Field: EVENT
Description: Event selector. Up to 128 events selectable. Note that with counter-specific events, an offset of 64 must be used when programming the field, because counter-specific events occupy the bottom 64 values of the 7-bit event field where events are numbered. For example, to specify counter-specific event 0, the event field must be programmed to 64. See Table 25-43 for definition of events.
If you look at Table 25-43 starting on page 1978 there are a series of numbers for different events that show what is counted for each EVENT CODE.
So that leads to the question I am asking: What are the Performance Monitor event codes for "instructions executed" and "L1 cache misses"?