From 0449af0365f19c246f6ce09dd93118a597f78949 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 2 Oct 2009 16:42:44 -0700 Subject: Updates samples index for sched_switch --- testsuite/systemtap.examples/profiling/sched_switch.meta | 6 +++--- testsuite/systemtap.examples/profiling/sched_switch.stp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 testsuite/systemtap.examples/profiling/sched_switch.stp (limited to 'testsuite/systemtap.examples/profiling') diff --git a/testsuite/systemtap.examples/profiling/sched_switch.meta b/testsuite/systemtap.examples/profiling/sched_switch.meta index 8f1a2858..b202a74c 100644 --- a/testsuite/systemtap.examples/profiling/sched_switch.meta +++ b/testsuite/systemtap.examples/profiling/sched_switch.meta @@ -1,4 +1,4 @@ -title: Display the task switches happeningt the scheduler +title: Display the task switches happening in the scheduler name: sched_switch.stp version: 1.0 author: kiran @@ -6,9 +6,9 @@ keywords: profiling functions subsystem: kernel status: production exit: user-controlled -output: sorted-list on-exit +output: trace scope: system-wide -description: The sched_switch.stp script takes two arguments, first argument can be "pid" or "name" to indicate what is being passed as second argument. The script will trace the process based on pid/name and print the scheduler switches happening with the process. If no arguments are passed, it displays all the scheduler switches. This can be used to understand which tasks scheduler the current process being traced, out and when it gets scheduled in again. +description: The sched_switch.stp script takes two arguments, first argument can be "pid" or "name" to indicate what is being passed as second argument. The script will trace the process based on pid/name and print the scheduler switches happening with the process. If no arguments are passed, it displays all the scheduler switches. This can be used to understand which tasks schedule out the current process being traced, and when it gets scheduled in again. test_check: stap -p4 sched_switch.stp test_installcheck: stap sched_switch.stp -c "sleep 1" diff --git a/testsuite/systemtap.examples/profiling/sched_switch.stp b/testsuite/systemtap.examples/profiling/sched_switch.stp old mode 100644 new mode 100755 index 24973526..1c1b18b7 --- a/testsuite/systemtap.examples/profiling/sched_switch.stp +++ b/testsuite/systemtap.examples/profiling/sched_switch.stp @@ -1,3 +1,4 @@ +#! /usr/bin/env stap /* This script works similar to ftrace's sched_switch. It displays a list of * processes which get switched in and out of the scheduler. The format of display * is PROCESS_NAME PROCESS_PID CPU TIMESTAMP PID: PRIORITY: PROCESS STATE ->/+ -- cgit