summaryrefslogtreecommitdiffstats
path: root/tapset/context.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/context.stp')
-rw-r--r--tapset/context.stp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tapset/context.stp b/tapset/context.stp
index 81604d83..0075150d 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -40,14 +40,21 @@ function pid:long () %{
if (unlikely(in_interrupt()))
THIS->__retvalue = 0;
else
- THIS->__retvalue = current->pid;
+ THIS->__retvalue = current->tgid;
+%}
+
+function tid:long () %{
+ if (unlikely(in_interrupt()))
+ THIS->__retvalue = 0;
+ else
+ THIS->__retvalue = current->pid;
%}
function ppid:long () %{
if (unlikely(in_interrupt() || !current->parent))
THIS->__retvalue = 0;
else
- THIS->__retvalue = current->parent->pid;
+ THIS->__retvalue = current->parent->tgid;
%}
function pexecname:string () %{