summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evlist.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-06-02 10:55:10 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-06-02 10:55:10 -0300
commit5c6970af2f4be4e04b06fe78214f6809777a8354 (patch)
treeec39ed480a4d8a15fe261d6a37edf894fb2fa936 /tools/perf/util/evlist.h
parentbccdaba044a445eb2c391295587aa47977994777 (diff)
downloadop-kernel-dev-5c6970af2f4be4e04b06fe78214f6809777a8354.zip
op-kernel-dev-5c6970af2f4be4e04b06fe78214f6809777a8354.tar.gz
perf python: Use exception to propagate errors
We were using pr_debug to tell the user about not being able to parse a sample where we should really use the python way of reporting errors: exceptions. Fixes this problem: [root@emilia ~]# python >>> import perf Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /home/acme/git/build/perf/python/perf.so: undefined symbol: eprintf >>> [root@emilia ~] As we want to keep the objects linked in the python binding (and in the future in a shared library) minimal. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-m9dba9kaluas0kq8r58z191c@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evlist.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud