summaryrefslogtreecommitdiffstats
path: root/tapset/LKET/tskdispatch.stp
diff options
context:
space:
mode:
authorsrikar <srikar>2007-08-27 10:22:05 +0000
committersrikar <srikar>2007-08-27 10:22:05 +0000
commit866f6739b1d039e77c2fa4d15dfcad4e151c149b (patch)
treea2765b23d528902787dfabc02a9d900f2afa569a /tapset/LKET/tskdispatch.stp
parent622cbb7125992573459732c46a7fcb29a6d536b5 (diff)
downloadsystemtap-steved-866f6739b1d039e77c2fa4d15dfcad4e151c149b.tar.gz
systemtap-steved-866f6739b1d039e77c2fa4d15dfcad4e151c149b.tar.xz
systemtap-steved-866f6739b1d039e77c2fa4d15dfcad4e151c149b.zip
Removing LKET tapset files. (PR 4817: retiring LKET services)
Diffstat (limited to 'tapset/LKET/tskdispatch.stp')
-rwxr-xr-xtapset/LKET/tskdispatch.stp78
1 files changed, 0 insertions, 78 deletions
diff --git a/tapset/LKET/tskdispatch.stp b/tapset/LKET/tskdispatch.stp
deleted file mode 100755
index 05103f96..00000000
--- a/tapset/LKET/tskdispatch.stp
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (C) 2005, 2006 IBM Corp.
-//
-// This file is part of systemtap, and is free software. You can
-// redistribute it and/or modify it under the terms of the GNU General
-// Public License (GPL); either version 2, or (at your option) any
-// later version.
-
-/**********************************************************
-* Dispatching when the cpu is idle or when a new process *
-* is chosen to run. *
-* *
-* The actual locations for these two kinds of events are *
-* the labels go_idle and switch_tasks inside the function *
-* schedule. But currently SystemTap doesn't support *
-* specifying probe points by label. *
-* *
-**********************************************************/
-
-probe addevent.tskdispatch
- = addevent.tskdispatch.cpuidle,
- addevent.tskdispatch.ctxswitch
-{}
-
-/* Only applicable to SMP systems */
-probe addevent.tskdispatch.cpuidle
- += _addevent.tskdispatch.cpuidle
-{
- update_record()
-}
-
-probe _addevent.tskdispatch.cpuidle
- = scheduler.balance
-{
- /* we didn't call filter_by_pid() here,
- so that we can get all the idle events
- despite how the cpu enters idle */
- log_cpuidle_tracedata(HOOKID_TASK_CPUIDLE)
-}
-
-probe addevent.tskdispatch.ctxswitch
- += _addevent.tskdispatch.ctxswitch
-{
- update_record()
-}
-
-probe _addevent.tskdispatch.ctxswitch
- = scheduler.ctxswitch
-{
- target_pid = target()
- cur_pid = pid()
- if( stp_pid() != cur_pid ) { /* skip staprun itself */
- if(target_pid == 0 || (target_pid !=0 && (prev_pid == target_pid
- || next_pid == target_pid))) {
- log_ctxswitch_tracedata(HOOKID_TASK_CTXSWITCH, prev_task, next_task)
- }
- }
-}
-
-function log_ctxswitch_tracedata(var_id:long, prev:long, next_pid:long)
-%{
- struct task_struct *prev_tsk, *next_tsk;
-
- prev_tsk = (struct task_struct *)((long)THIS->prev);
- next_tsk = (struct task_struct *)((long)THIS->next_pid);
-
- _lket_trace(_GROUP_TASK, THIS->var_id, "%4b%4b%1b",
- (_FMT_)kread(&(prev_tsk->pid)),
- (_FMT_)kread(&(next_tsk->pid)),
- (_FMT_)kread(&(prev_tsk->state)));
- CATCH_DEREF_FAULT();
-%}
-
-function log_cpuidle_tracedata(var_id:long)
-%{
- struct task_struct *cur = current;
-
- _lket_trace(_GROUP_TASK, THIS->var_id, "%4b", (_FMT_)cur->pid);
-%}