perf session: Ditch register_perf_file_handler
Pass the event_ops to perf_session__process_events instead. Also move the event_ops definition to session.h, starting to move things around to their right place, trimming the many unneeded headers we have. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260741029-4430-2-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
d8f66248d6
commit
301a0b0202
@ -48,7 +48,8 @@ out_close:
|
||||
return -1;
|
||||
}
|
||||
|
||||
struct perf_session *perf_session__new(const char *filename, int mode, bool force)
|
||||
struct perf_session *perf_session__new(const char *filename, int mode,
|
||||
bool force)
|
||||
{
|
||||
size_t len = strlen(filename) + 1;
|
||||
struct perf_session *self = zalloc(sizeof(*self) + len);
|
||||
|
Reference in New Issue
Block a user