Re: [perfmon2] updating perf tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, Feb 14, 2011 at 11:44 AM, Arnaldo Carvalho de Melo
<acme@xxxxxxxxxxxxxxxxxx> wrote:
>>
>> http://perfmon2.git.sourceforge.net/git/gitweb.cgi?p=perfmon2/libpfm4;a=blob;f=python/sys.py;h=e3a44f24174b979694e2588592f759010b77621e;hb=f70e032b5b69cf5aa6f7e0da746b1817c64341e9
>
> Interesting, have you seen the python binding in tip/perf/core?

My understanding of the stuff under scripts/python is that it links in
a python interpreter into perf and allows the user to write scripts to
filter the data coming in from the kernel.

The scripts I wrote a couple of years ago knew nothing about perf, the
user space tool and wrapped the syscall directly. Sample use case:
parse the hardware topology of a machine, understand how many NUMA
nodes/memory controllers there are in the system and print the
percentage of the memory bandwidth being used on each controller.

Potentially, perf itself could be structured as a set of shared
libraries, which are then glued together using a scripting language.
That may be the wrong trade-off for many users, who value simplicity
and efficiency of a tool written in C over scriptability. But such a
design could make activities such as parsing perf.data in a python
script essentially free.

 -Arun
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux