Re: How to find all valid events for the CPU
Michael Petlan <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Organization | Red Hat |
| Message-ID | <1433413926.15036.288.camel@Rudolf-RHEL-7> |
On Thu, 2015-06-04 at 08:44 +0000, Mahmood N wrote: > Hi, > I m trying to pass all events to opcontrol but can not find an option > for that. It seems that I have to write all events manually. Is there > any way to first find all valid and applicable events and then tell > opcontrol to use all of them? Surely that generates a large report. > Hi, as far as I know, there is no way how to use any wildcards in oprofile's event specification. You have to specify them with '-e' parameter manually, either by "-e event1 -e event2" or by a comma-separated list, like "-e event1,event2". You can list all the available events by running "ophelp" command. It has also -X option for some XML output. But there's also a limit (should be around 24 I think) for the maximum number of counted events. There's a good reason for it, since your CPU has some limited number of counters (like 6 or 8, it depends on the model/vendor/arch/...). They may be multiplexed (one counter can count more than one event at once), but in such case the results are less and less precise. And as far as you can have 100+ events available on the system, it makes no sense to measure all of them at once. > > Regards, > Mahmood Regards, Michael > ------------------------------------------------------------------------------ > _______________________________________________ > oprofile-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oprofile-list ------------------------------------------------------------------------------