summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authorfche <fche>2007-08-15 14:21:55 +0000
committerfche <fche>2007-08-15 14:21:55 +0000
commit6cad281fe986cdd3f89cba7c1959de10ca6f389d (patch)
treef0e75921f90afa7624e712eb05cad4645adbcecf /tapset/context.stp
parent5a5e51349aad1fe7d825cc90e76665e472b4c640 (diff)
downloadsystemtap-steved-6cad281fe986cdd3f89cba7c1959de10ca6f389d.tar.gz
systemtap-steved-6cad281fe986cdd3f89cba7c1959de10ca6f389d.tar.xz
systemtap-steved-6cad281fe986cdd3f89cba7c1959de10ca6f389d.zip
2007-08-15 Frank Ch. Eigler <fche@elastic.org>
* context.stp (cpuid, cpu): Use smp_processor_id().
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 39f1b640..622fa505 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -65,11 +65,11 @@ function euid:long () %{ /* pure */
%}
function cpuid:long () %{ /* pure */
- THIS->__retvalue = current->thread_info->cpu;
+ THIS->__retvalue = smp_processor_id();
%}
function cpu:long () %{ /* pure */
- THIS->__retvalue = current->thread_info->cpu; /* smp_processor_id()? */
+ THIS->__retvalue = smp_processor_id();
%}
function print_stack(stk:string) %{