1. 26 6月, 2015 10 次提交
  2. 16 6月, 2015 1 次提交
  3. 11 6月, 2015 1 次提交
    • K
      perf stat: Error out unsupported group leader immediately · cb5ef600
      Kan Liang 提交于
      perf stat ignores the unsupported event and continue to count supported
      event. But if the unsupported event is group leader, perf tool will
      crash. After applying this patch, the unsupported group leader will
      error out immediately.
      
      Without this patch:
      
        $ perf stat -x, -e '{node-prefetch-refs,cycles}' --  sleep 1
        perf: util/evsel.c:1009: get_group_fd: Assertion `!(fd == -1)' failed.
        Aborted (core dumped)
      
      With this patch:
      
        $ perf stat -x, -e '{node-prefetch-refs,cycles}' --  sleep 1
        Error:
        The node-prefetch-refs event is not supported.
      
      Commiter note: Here I got a different output, but no core dump:
      
        [acme@zoo linux]$ perf stat -x, -e '{node-prefetch-refs,cycles}' -- sleep 1
        Error:
        The sys_perf_event_open() syscall returned with 22 (Invalid argument)
        for event (node-prefetch-refs).
        /bin/dmesg may provide additional information.
        No CONFIG_PERF_EVENTS=y kernel support configured?
      Signed-off-by: NKan Liang <kan.liang@intel.com>
      Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Andi Kleen <andi@firstfloor.org>
      Link: http://lkml.kernel.org/r/1434004360-8570-1-git-send-email-kan.liang@intel.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      cb5ef600
  4. 08 6月, 2015 9 次提交
  5. 29 4月, 2015 6 次提交
  6. 26 3月, 2015 1 次提交
  7. 13 3月, 2015 3 次提交
  8. 02 3月, 2015 1 次提交
  9. 22 1月, 2015 1 次提交
  10. 02 12月, 2014 5 次提交
  11. 17 10月, 2014 1 次提交
    • A
      perf evsel: No need to drag util/cgroup.h · f14d5707
      Arnaldo Carvalho de Melo 提交于
      The only thing we need is a forward declaration for 'struct cgroup_sel',
      that is inside 'struct perf_evsel'.
      
      Include cgroup.h instead on the tools that support cgroups.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Don Zickus <dzickus@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jean Pihet <jean.pihet@linaro.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-b7kuymbgf0zxi5viyjjtu5hk@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f14d5707
  12. 26 9月, 2014 1 次提交