summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
authorfche <fche>2006-02-17 17:56:08 +0000
committerfche <fche>2006-02-17 17:56:08 +0000
commit2f6e24e1b6b19d8b56da4f7d1120d36cbf191098 (patch)
tree7e8c03091cdb036c56673a7d7db6c390ec43d760 /tapset/context.stp
parenta7aa967a4f95ba9c112abcd783b282b50a66ebc5 (diff)
downloadsystemtap-steved-2f6e24e1b6b19d8b56da4f7d1120d36cbf191098.tar.gz
systemtap-steved-2f6e24e1b6b19d8b56da4f7d1120d36cbf191098.tar.xz
systemtap-steved-2f6e24e1b6b19d8b56da4f7d1120d36cbf191098.zip
2006-02-17 Frank Ch. Eigler <fche@elastic.org>
* stapfuncs.5.in (cpu): Document contextinfo function. * context.stp (cpu): Clone undocumented cpuid() function.
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 44b52e1c..98571d9e 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -69,6 +69,10 @@ function cpuid:long () %{
THIS->__retvalue = current->thread_info->cpu;
%}
+function cpu:long () %{
+ THIS->__retvalue = current->thread_info->cpu; /* smp_processor_id()? */
+%}
+
function print_stack(stk:string) %{
char *ptr = THIS->stk;
char *tok = strsep(&ptr, " ");