• Frederic Weisbecker's avatar
    perf tools: Record events info also when :record suffix is used. · 9df37ddd
    Frederic Weisbecker authored
    You can enable a counter's PERF_SAMPLE_RAW attribute in two
    fashions:
    
    - using the -R option (every counters get PERF_SAMPLE_RAW)
    - using the :record suffix in a trace event counter name
    
    Currently we record the events info in a trace.info file from
    perf record when the former method is used but we omit it with
    the latter.
    
    Check both situations.
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    LKML-Reference: <1250543271-8383-3-git-send-email-fweisbec@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    9df37ddd
builtin-record.c 15.4 KB