diff options
author | Przemyslaw Pawelczyk <przemyslaw@pawelczyk.it> | 2009-08-28 02:19:21 +0200 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-28 11:21:24 -0700 |
commit | 2a20d700d67172cdb729b449b9944d5c55b9ad49 (patch) | |
tree | 787061c4ccea2890c93846c630eb8267d178e72e /tapset | |
parent | 2d7881bf6e14d14fa1394f65f11b4d1dce4e2623 (diff) | |
download | systemtap-steved-2a20d700d67172cdb729b449b9944d5c55b9ad49.tar.gz systemtap-steved-2a20d700d67172cdb729b449b9944d5c55b9ad49.tar.xz systemtap-steved-2a20d700d67172cdb729b449b9944d5c55b9ad49.zip |
Use || and && in preprocessor's conditions in tapsets.
Signed-off-by: Josh Stone <jistone@redhat.com>
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/scheduler.stp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/tapset/scheduler.stp b/tapset/scheduler.stp index 45ddbb04..d67e0310 100644 --- a/tapset/scheduler.stp +++ b/tapset/scheduler.stp @@ -121,12 +121,8 @@ 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 != "ia64" %? +%( arch != "x86_64" && arch != "ia64" %? kernel.function("__switch_to") - %: - kernel.function("context_switch") - %) %: kernel.function("context_switch") %) @@ -137,13 +133,7 @@ probe scheduler.ctxswitch = prev_task = $prev next_task = $new prevtsk_state = $prev->state -%: %( arch == "x86_64" %? - prev_pid = $prev->pid - next_pid = $next->pid - prev_task = $prev - next_task = $next - prevtsk_state = $prev->state -%: %( arch == "ia64" %? +%: %( arch == "x86_64" || arch == "ia64" %? prev_pid = $prev->pid next_pid = $next->pid prev_task = $prev @@ -155,5 +145,5 @@ probe scheduler.ctxswitch = prev_task = $prev_p next_task = $next_p prevtsk_state = $prev_p->state -%) %) %) +%) %) } |