History

perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available

Older kernels (e.g., RHEL6) do system call tracing via the syscalls:sys_{enter,exit} tracepoints rather than using raw_syscalls:*. Update perf python and perl scripts to fallback to syscalls:* when raw_syscalls:* isn't available.

Daniel Bristot de Oliveira committed 12 years ago

Commit 07100871 parent 1c92f8810 files · +35 −5Browse files

Showing the changes to tools/perf/scripts/python/bin (4 of 10 files). Show all

Unified · Split

4 files
  1. tools/perf/scripts/python/bin/failed-syscalls-by-pid-record +2 −1
  2. tools/perf/scripts/python/bin/sctop-record +2 −1
  3. tools/perf/scripts/python/bin/syscall-counts-by-pid-record +2 −1
  4. tools/perf/scripts/python/bin/syscall-counts-record +2 −1
tools/perf/scripts/python/bin/failed-syscalls-by-pid-record+2−1
@@ -1,2 +1,3 @@
1#!/bin/bash1#!/bin/bash
2perf record -e raw_syscalls:sys_exit $@2(perf record -e raw_syscalls:sys_exit $@ || \
3 perf record -e syscalls:sys_exit $@) 2> /dev/null
tools/perf/scripts/python/bin/sctop-record+2−1
@@ -1,2 +1,3 @@
1#!/bin/bash1#!/bin/bash
2perf record -e raw_syscalls:sys_enter $@2(perf record -e raw_syscalls:sys_enter $@ || \
3 perf record -e syscalls:sys_enter $@) 2> /dev/null
tools/perf/scripts/python/bin/syscall-counts-by-pid-record+2−1
@@ -1,2 +1,3 @@
1#!/bin/bash1#!/bin/bash
2perf record -e raw_syscalls:sys_enter $@2(perf record -e raw_syscalls:sys_enter $@ || \
3 perf record -e syscalls:sys_enter $@) 2> /dev/null
tools/perf/scripts/python/bin/syscall-counts-record+2−1
@@ -1,2 +1,3 @@
1#!/bin/bash1#!/bin/bash
2perf record -e raw_syscalls:sys_enter $@2(perf record -e raw_syscalls:sys_enter $@ || \
3 perf record -e syscalls:sys_enter $@) 2> /dev/null