On Thu, Sep 6, 2012 at 6:36 AM, Leonardo Piga <leonardo.p...@gmail.com> wrote: > 1. perfmon was discontinued but you can use libpfm. > 2 - libpfm provide examples to do system wide monitoring > 3 - if you insist on using perf you can combine with sleep command line to > do system wide monitoring for a period of time. > 4 - if you do not know the period of time just create a simple program that > hangs (using wait) and send a sigterm to end as needed. Perhaps there > already has an utility to do it but I am not aware. > 5 - libpfm has much more events than perf, to find the performance counters > list see bkdg for amd processor and programer's guide for intel. > Leonardo is correct. To measure everything (i.e., every thread on every processor), you need to use the system-wide mode: perf stat -a. But you still need to pass a command to time the duration of the measurement. You can use sleep, that way it won't influence the measurement because it blocks immediately:
$ perf stat -a sleep 10 For a 10s measurement. > -Leonardo > > On Thursday, September 6, 2012, Junjie Qian wrote: >> >> Hi all, >> >> I know this mail list is used for perfmon2, but since perfmon2 stops after >> 2.6.30, and now I am using perf instead. I have one question on using perf >> tool, and hope you can give me some help on this. >> >> The question is, can 'perf stat' can collect performance information >> globally instead for one single command? During my use of perf, I found I >> have to specify the command for perf to measure performance. But in one >> paper, the authors are able to collect the information without one command, >> and I cannot redid this on my own machine. I think this may due to version >> problem, or some other? >> >> For example, for the command "perf_3.2.0-29 stat -a -C 0 -e rc0", in my >> execution, it gives me the error information along with the usage of perf >> stat. >> >> Any idea on this? I really need your help! >> >> I am sorry for this no-related question, but I cannot find any other >> maillist on this tool. >> >> Thanks! >> Best >> Junjie > > > > -- > Leonardo > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel