Can pfmon monitor multithreaded programs?
It depends on the version. Pfmon-2.0 can only monitor the first (master) thread. But pfmon-3.0 can monitor multi-threaded programs when using the –follow-pthread option. This option is not turned on by default • Is there a workaround to monitor multithreaded programs? With pfmon-2.0, one alternative is to use a system wide session. The other choice is to go with pfmon-3.0 but then you need to use a 2.6-based Linux kernel. • Can pfmon monitor more than 4 events at a time? Pfmon is only limited by the number of physical counters of the host PMU. Current implementations only have 4 counters. • Is it possible to multiplex events using pfmon? No, pfmon does not do any event multiplexing to mask the limitation on the number of counters. • Where do I find detailed information about each event? You need to refer to the Itanium and Itanium 2 micro-architecture documentation which is available on the Internet at the Intel developer web site.