perf sched: Make it easier to plug in new sub profilers
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 12 Sep 2009 01:59:01 +0000 (03:59 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 13 Sep 2009 08:22:42 +0000 (10:22 +0200)
commit419ab0d6a959f41ec7fde807fe311aaafb05c3be
treee64f1de57d50401c743a076d96f9a8c3f2bd1287
parent46538818023e8ea94f656acfa1e38297e2df20e2
perf sched: Make it easier to plug in new sub profilers

Create a sched event structure of handlers in which various
sched events reader can plug their own callbacks.

This makes easier the addition of new perf sched sub commands.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-sched.c