mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests/drm_get_client_auth: In Android, use gettid() instead of syscall(SYS_gettid)
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
1cd6913608
commit
7076ea1bd6
@ -47,9 +47,13 @@
|
||||
static bool
|
||||
is_local_tid(pid_t tid)
|
||||
{
|
||||
/* On Linux systems, drmGetClient() would return the thread ID
|
||||
instead of the actual process ID */
|
||||
return syscall(SYS_gettid) == tid;
|
||||
#ifndef ANDROID
|
||||
/* On Linux systems, drmGetClient() would return the thread ID
|
||||
instead of the actual process ID */
|
||||
return syscall(SYS_gettid) == tid;
|
||||
#else
|
||||
return gettid() == tid;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user