From deb635455c042a10cc74a45c9ef02458d890946f Mon Sep 17 00:00:00 2001 From: William Cohen Date: Fri, 17 Jul 2009 15:18:51 -0400 Subject: Add chng_cpu.stp and migrate.stp examples. --- testsuite/systemtap.examples/process/migrate.meta | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testsuite/systemtap.examples/process/migrate.meta (limited to 'testsuite/systemtap.examples/process/migrate.meta') diff --git a/testsuite/systemtap.examples/process/migrate.meta b/testsuite/systemtap.examples/process/migrate.meta new file mode 100644 index 00000000..09a25de0 --- /dev/null +++ b/testsuite/systemtap.examples/process/migrate.meta @@ -0,0 +1,14 @@ +title: Track the Migration of Specific Executables +name: migrate.stp +version: 1.0 +author: Ankita Garg at IBM +keywords: scheduler +subsystem: scheduler +status: production +exit: user-controlled +output: trace +scope: pid +description: The migrate.stp script takes an argument which is the executable name of the task it should monitor. Each time a task with that executable name migrates between processors an entry is printed with the process id (pid), the executable name, the processor off loading the task, and the process taking the task. Note that the task may or may not be executing at the time of the migration. +arg_1: The name of the executable to watch +test_check: stap -p4 migrate.stp bash +test_installcheck: stap migrate.stp -c "sleep 1" bash -- cgit