• Jiri Olsa's avatar
    perf evsel: Probe for precise_ip with simple attr · 5b61adb1
    Jiri Olsa authored
    Currently we probe for precise_ip with user specified perf_event_attr,
    which might fail because of unsupported kernel features, which would get
    disabled during the open time anyway.
    
    Switching the probe to take place on simple hw cycles, so the following
    record sets proper precise_ip:
    
      # perf record -e cycles:P ls
      # perf evlist -v
      cycles:P: size: 112, ... precise_ip: 3, ...
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
    Cc: Nageswara R Sastry <nasastry@in.ibm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
    Link: http://lkml.kernel.org/r/20190305152536.21035-7-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    5b61adb1
evlist.c 42.3 KB