summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/context.stp3
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;