• Peter Zijlstra's avatar
    perf: Optimize perf_tp_event_match() · 580d607c
    Peter Zijlstra authored
    Since we know tracepoints come from kernel context,
    avoid conditionals that try and establish that very
    fact.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    LKML-Reference: <20100521090710.904944001@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    580d607c
perf_event.c 131 KB