diff options
Diffstat (limited to 'sandbox/linux/seccomp/gettid.cc')
-rw-r--r-- | sandbox/linux/seccomp/gettid.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sandbox/linux/seccomp/gettid.cc b/sandbox/linux/seccomp/gettid.cc index 5503c8c..1423383 100644 --- a/sandbox/linux/seccomp/gettid.cc +++ b/sandbox/linux/seccomp/gettid.cc @@ -8,8 +8,11 @@ namespace playground { int Sandbox::sandbox_gettid() { - Debug::syscall(__NR_gettid, "Executing handler"); - return tid(); + long long tm; + Debug::syscall(&tm, __NR_gettid, "Executing handler"); + pid_t t = tid(); + Debug::elapsed(tm, __NR_gettid); + return t; } } // namespace |