diff options
author | hien <hien> | 2005-12-15 21:22:05 +0000 |
---|---|---|
committer | hien <hien> | 2005-12-15 21:22:05 +0000 |
commit | 3a5c927fcdeefa3efe98bc6dd30cd624e901b06a (patch) | |
tree | a9fef1cdb8e5aff222b23cef5f4fd2598e450dc7 /tapset/context.stp | |
parent | 2cf16419ca4ce9ca926a04affc91e98861f672c1 (diff) | |
download | systemtap-steved-3a5c927fcdeefa3efe98bc6dd30cd624e901b06a.tar.gz systemtap-steved-3a5c927fcdeefa3efe98bc6dd30cd624e901b06a.tar.xz systemtap-steved-3a5c927fcdeefa3efe98bc6dd30cd624e901b06a.zip |
Added cpuid().
Diffstat (limited to 'tapset/context.stp')
-rw-r--r-- | tapset/context.stp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tapset/context.stp b/tapset/context.stp index 56740db3..4ba9dfb2 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -65,6 +65,9 @@ function euid:long () %{ THIS->__retvalue = current->euid; %} +function cpuid:long () %{ + THIS->__retvalue = current->thread_info->cpu; +%} function print_stack(stk:string) %{ char *ptr = THIS->stk; |