perf inject: Refactor read_buildid function
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 2 May 2010 22:46:36 +0000 (19:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 2 May 2010 22:46:36 +0000 (19:46 -0300)
commit090f7204dfdb5d7f18208ea81dfdba845897cedd
tree19988fe463ec3dc964d2790bf1bcfaa29dff73c8
parent2c9faa060064343a4a0b16f5b77f3c61d1d17e23
perf inject: Refactor read_buildid function

Into two functions, one that actually reads the build_id for the dso if
it wasn't already read, and another taht will inject the event if the
build_id is available.

Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c