• Andi Kleen's avatar
    perf record: Support weak groups · cf99ad14
    Andi Kleen authored
    Implement a weak group fallback for 'perf record', similar to the
    existing 'perf stat' support.  This allows to use groups that might be
    longer than the available counters without failing.
    
    Before:
    
      $ perf record  -e '{cycles,cache-misses,cache-references,cpu_clk_unhalted.thread,cycles,cycles,cycles}' -a sleep 1
      Error:
      The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles).
      /bin/dmesg | grep -i perf may provide additional information.
    
    After:
    
      $ ./perf record  -e '{cycles,cache-misses,cache-references,cpu_clk_unhalted.thread,cycles,cycles,cycles}:W' -a sleep 1
      WARNING: No sample_id_all support, falling back to unordered processing
      [ perf record: Woken up 3 times to write data ]
      [ perf record: Captured and wrote 8.136 MB perf.data (134069 samples) ]
    Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
    Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
    Link: http://lkml.kernel.org/r/20181001195927.14211-2-andi@firstfloor.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    cf99ad14
Name
Last commit
Last update
..
Build.txt Loading commit data...
Makefile Loading commit data...
android.txt Loading commit data...
asciidoc.conf Loading commit data...
asciidoctor-extensions.rb Loading commit data...
build-xed.txt Loading commit data...
callchain-overhead-calculation.txt Loading commit data...
examples.txt Loading commit data...
intel-bts.txt Loading commit data...
intel-pt.txt Loading commit data...
itrace.txt Loading commit data...
jit-interface.txt Loading commit data...
jitdump-specification.txt Loading commit data...
manpage-1.72.xsl Loading commit data...
manpage-base.xsl Loading commit data...
manpage-bold-literal.xsl Loading commit data...
manpage-normal.xsl Loading commit data...
manpage-suppress-sp.xsl Loading commit data...
perf-annotate.txt Loading commit data...
perf-archive.txt Loading commit data...
perf-bench.txt Loading commit data...
perf-buildid-cache.txt Loading commit data...
perf-buildid-list.txt Loading commit data...
perf-c2c.txt Loading commit data...
perf-config.txt Loading commit data...
perf-data.txt Loading commit data...
perf-diff.txt Loading commit data...
perf-evlist.txt Loading commit data...
perf-ftrace.txt Loading commit data...
perf-help.txt Loading commit data...
perf-inject.txt Loading commit data...
perf-kallsyms.txt Loading commit data...
perf-kmem.txt Loading commit data...
perf-kvm.txt Loading commit data...
perf-list.txt Loading commit data...
perf-lock.txt Loading commit data...
perf-mem.txt Loading commit data...
perf-probe.txt Loading commit data...
perf-record.txt Loading commit data...
perf-report.txt Loading commit data...
perf-sched.txt Loading commit data...
perf-script-perl.txt Loading commit data...
perf-script-python.txt Loading commit data...
perf-script.txt Loading commit data...
perf-stat.txt Loading commit data...
perf-test.txt Loading commit data...
perf-timechart.txt Loading commit data...
perf-top.txt Loading commit data...
perf-trace.txt Loading commit data...
perf-version.txt Loading commit data...
perf.data-file-format.txt Loading commit data...
perf.txt Loading commit data...
perfconfig.example Loading commit data...
tips.txt Loading commit data...