diff options
author | David Smith <dsmith@redhat.com> | 2009-02-10 09:11:50 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-10 09:11:50 -0600 |
commit | ced8de1061ed47f7c3b0cfd4a7cedb338ab42f97 (patch) | |
tree | 0c9c7cb2740fc7fad9c64eff45b4105eb3e252ab | |
parent | 7c657805a80358ce2429415af931ca1546c2c2d2 (diff) | |
download | systemtap-steved-ced8de1061ed47f7c3b0cfd4a7cedb338ab42f97.tar.gz systemtap-steved-ced8de1061ed47f7c3b0cfd4a7cedb338ab42f97.tar.xz systemtap-steved-ced8de1061ed47f7c3b0cfd4a7cedb338ab42f97.zip |
Fixed typo in last change.
2009-02-10 David Smith <dsmith@redhat.com>
* task_finder.c (stap_utrace_detach_ops): Fixed typo.
(__stp_utrace_attach): Ditto.
-rw-r--r-- | runtime/ChangeLog | 3 | ||||
-rw-r--r-- | runtime/task_finder.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog index da66ca0b..df765169 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,5 +1,8 @@ 2009-02-10 David Smith <dsmith@redhat.com> + * task_finder.c (stap_utrace_detach_ops): Fixed typo. + (__stp_utrace_attach): Ditto. + * task_finder.c (stap_utrace_detach): Ignores kernel threads by checking task's flags for PF_KTHREAD. (stap_utrace_detach_ops): Ditto. diff --git a/runtime/task_finder.c b/runtime/task_finder.c index af606356..e058c191 100644 --- a/runtime/task_finder.c +++ b/runtime/task_finder.c @@ -304,7 +304,7 @@ stap_utrace_detach_ops(struct utrace_engine_ops *ops) // Ignore kernel threads. On systems without // PF_KTHREAD, we're ok, since kernel threads won't be // matched by the stap_utrace_detach() call. - if (task->flags & PF_KTHREAD) + if (tsk->flags & PF_KTHREAD) continue; #endif @@ -424,7 +424,7 @@ __stp_utrace_attach(struct task_struct *tsk, #ifdef PF_KTHREAD // Ignore kernel threads - if (task->flags & PF_KTHREAD) + if (tsk->flags & PF_KTHREAD) return EPERM; #else // Ignore threads with no mm (which are kernel threads). |