• Peter Zijlstra's avatar
    perf_counter: Add unique counter id · 8e5799b1
    Peter Zijlstra authored
    Stephan raised the issue that we currently cannot distinguish between
    similar counters within a group (PERF_RECORD_GROUP uses the config
    value as identifier).
    
    Therefore, generate a new ID for each counter using a global u64
    sequence counter.
    Reported-by: default avatarStephane Eranian <eranian@googlemail.com>
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: John Kacur <jkacur@redhat.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    8e5799b1
perf_counter.c 94.9 KB