lkml.org 
[lkml]   [2011]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: libperf interface stability
On 24.11.11 16:10:52, Arnaldo Carvalho de Melo wrote:
> Em Thu, Nov 24, 2011 at 05:28:45PM +0100, Robert Richter escreveu:
> > It would be good to have a well defined, stable libperf interface for
> > tools other than perf.
>
> Agreed, an effort in this direction was the perf python binding, that so
> far includes only:
>
> tools/perf/util/setup.py
>
> sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
> 'util/evsel.c', 'util/cpumap.c', 'util/thread_map.c',
> 'util/util.c', 'util/xyarray.c', 'util/cgroup.c',
> 'util/debugfs.c'],
>
> You need https://github.com/acmel/linux/commits/perf/urgent to build it
> tho, it has a fix for that:
>
> In the end it generates a ~/build/perf/python/perf.so file (I use make
> -C tools/perf O=/home/acme/build/perf) that has all that is needed for
> simple tools like tools/perf/python/twatch.py.
>
> I think of it as a precursor for a shared library for use with C and I
> have been working on untangling references such as the symbol_conf one
> you mentioned and making the 'perf_evlist' and 'perf_evsel' classes the
> main way to work with libperf.

Thanks Arnaldo, will then take this as a base to start with.

-Robert

--
Advanced Micro Devices, Inc.
Operating System Research Center



\
 
 \ /
  Last update: 2011-11-25 11:47    [W:0.054 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site