diff options
author | fche <fche> | 2007-08-15 14:21:55 +0000 |
---|---|---|
committer | fche <fche> | 2007-08-15 14:21:55 +0000 |
commit | 6cad281fe986cdd3f89cba7c1959de10ca6f389d (patch) | |
tree | f0e75921f90afa7624e712eb05cad4645adbcecf | |
parent | 5a5e51349aad1fe7d825cc90e76665e472b4c640 (diff) | |
download | systemtap-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().
-rw-r--r-- | tapset/ChangeLog | 6 | ||||
-rw-r--r-- | tapset/context.stp | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 5d13eec6..1730d04b 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,7 +1,11 @@ +2007-08-15 Frank Ch. Eigler <fche@elastic.org> + + * context.stp (cpuid, cpu): Use smp_processor_id(). 2007-08-12 Wenji Huang <wenji.huang@oracle.com> - * aux_syscalls.stp(_sched_policy_str,_nfsctl_cmd_str) : Add SCHED_BATCH to policy entries, NFSCTL_GETFD,NFSCTL_GETFS to nfsctl entries + * aux_syscalls.stp(_sched_policy_str,_nfsctl_cmd_str): Add SCHED_BATCH to policy entries, + NFSCTL_GETFD,NFSCTL_GETFS to nfsctl entries 2007-08-10 Josh Stone <joshua.i.stone@intel.com> 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) %{ |