diff options
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/ChangeLog | 11 | ||||
-rw-r--r-- | tapset/aux_syscalls.stp | 4 | ||||
-rw-r--r-- | tapset/scheduler.stp | 16 |
3 files changed, 28 insertions, 3 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 5a305cd3..5519ef58 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,14 @@ +2008-1-4 Masami Hiramatsu <mhiramat@redhat.com> + + * aux_syscalls.stp (_stp_fork_list): Check kernel version for new + flags. + +2008-1-4 Masami Hiramatsu <mhiramat@redhat.com> + + PR5152 + * scheduler.stp (scheduler.ctxswitch): Change probe point __switch_to + to context_switch on ia64. + 2007-12-27 Zhaolei <zhaolei@cn.fujitsu.com> From Yang Zhiguo <yzgcsu@cn.fujitsu.com> diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index 9120c4e6..da72a7ff 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -1685,8 +1685,12 @@ const _stp_val_array const _stp_fork_list[] = { V(CLONE_UNTRACED), V(CLONE_CHILD_SETTID), V(CLONE_STOPPED), +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) V(CLONE_NEWIPC), +#endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) V(CLONE_NEWUSER), +#endif {0, NULL} }; %} diff --git a/tapset/scheduler.stp b/tapset/scheduler.stp index 8b6db182..55e230c2 100644 --- a/tapset/scheduler.stp +++ b/tapset/scheduler.stp @@ -121,10 +121,14 @@ probe scheduler.balance = kernel.function("idle_balance")? {} * prevtsk_state: the state of the process to be switched out */ probe scheduler.ctxswitch = -%( arch == "x86_64" %? +%( arch != "x86_64" %? + %( arch != "ia64" %? + kernel.function("__switch_to") + %: kernel.function("context_switch") + %) %: - kernel.function("__switch_to") + kernel.function("context_switch") %) { %( arch == "ppc64" %? @@ -139,11 +143,17 @@ probe scheduler.ctxswitch = prev_task = $prev next_task = $next prevtsk_state = $prev->state +%: %( arch == "ia64" %? + prev_pid = $prev->pid + next_pid = $next->pid + prev_task = $prev + next_task = $next + prevtsk_state = $prev->state %: prev_pid = $prev_p->pid next_pid = $next_p->pid prev_task = $prev_p next_task = $next_p prevtsk_state = $prev_p->state -%) %) +%) %) %) } |