mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +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
|
static bool
|
||||||
is_local_tid(pid_t tid)
|
is_local_tid(pid_t tid)
|
||||||
{
|
{
|
||||||
/* On Linux systems, drmGetClient() would return the thread ID
|
#ifndef ANDROID
|
||||||
instead of the actual process ID */
|
/* On Linux systems, drmGetClient() would return the thread ID
|
||||||
return syscall(SYS_gettid) == tid;
|
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