Debian Codegraph @

EXAMPLES/process/chng_cpu.meta

raw
1 title: Monitor Changes in Processor Executing a Task
2 name: chng_cpu.stp
3 version: 1.0
4 author: Ankita Garg at IBM
5 keywords: scheduler
6 subsystem: scheduler
7 status: production
8 exit: user-controlled
9 output: trace
10 scope: process
11 description: The chng_cpu.stp script takes an argument which is the executable name of the task it should monitor. Each time a task with that executable name is found running on a different processor, the script prints out the thread id (tid), the executable name, the processor now running the task, the thread state, and a backtrace showing the kernel functions that triggered the running of the task on the processor.
12 arg_1: The name of the executable to monitor
13 test_check: stap -p4 chng_cpu.stp bash
14 test_installcheck: stap chng_cpu.stp -T 1 bash