Skip to content

Commit

Permalink
Bug fix on vtid read from /proc/<pid>/status
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Marturana committed Jan 3, 2017
1 parent fefc098 commit 31f076f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions userspace/libscap/scap_procs.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ int32_t scap_proc_fill_info_from_stats(char* procdirname, struct scap_threadinfo
{
tinfo->vtid = vtid;
}
else
{
tinfo->vtid = tinfo->tid;
}
}
else if(strstr(line, "NStgid:") == line)
{
Expand All @@ -183,6 +187,10 @@ int32_t scap_proc_fill_info_from_stats(char* procdirname, struct scap_threadinfo
{
tinfo->vpid = vpid;
}
else
{
tinfo->vpid = tinfo->pid;
}
}

if(nfound == 8)
Expand Down

0 comments on commit 31f076f

Please sign in to comment.