mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Print out unsupported futex operation message only once for the process.
Differential Revision: https://reviews.freebsd.org/D1498
This commit is contained in:
parent
2711aba97e
commit
5dd1d097f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283460
@ -61,6 +61,7 @@ int linux_common_execve(struct thread *, struct image_args *);
|
||||
#define LINUX_XDEPR_REQUEUEOP 0x00000001 /* uses deprecated
|
||||
futex REQUEUE op*/
|
||||
#define LINUX_XUNSUP_EPOLL 0x00000002 /* unsupported epoll events */
|
||||
#define LINUX_XUNSUP_FUTEXPIOP 0x00000004 /* uses unsupported pi futex */
|
||||
|
||||
struct linux_pemuldata {
|
||||
uint32_t flags; /* process emuldata flags */
|
||||
|
@ -936,29 +936,43 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args)
|
||||
|
||||
case LINUX_FUTEX_LOCK_PI:
|
||||
/* not yet implemented */
|
||||
pem = pem_find(td->td_proc);
|
||||
if ((pem->flags & LINUX_XUNSUP_FUTEXPIOP) == 0) {
|
||||
linux_msg(td,
|
||||
"linux_sys_futex: "
|
||||
"op LINUX_FUTEX_LOCK_PI not implemented\n");
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex, unimplemented_lock_pi);
|
||||
"unsupported futex_pi op\n");
|
||||
pem->flags |= LINUX_XUNSUP_FUTEXPIOP;
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex,
|
||||
unimplemented_lock_pi);
|
||||
}
|
||||
LIN_SDT_PROBE1(futex, linux_sys_futex, return, ENOSYS);
|
||||
return (ENOSYS);
|
||||
|
||||
case LINUX_FUTEX_UNLOCK_PI:
|
||||
/* not yet implemented */
|
||||
pem = pem_find(td->td_proc);
|
||||
if ((pem->flags & LINUX_XUNSUP_FUTEXPIOP) == 0) {
|
||||
linux_msg(td,
|
||||
"linux_sys_futex: "
|
||||
"op LINUX_FUTEX_UNLOCK_PI not implemented\n");
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex, unimplemented_unlock_pi);
|
||||
"unsupported futex_pi op\n");
|
||||
pem->flags |= LINUX_XUNSUP_FUTEXPIOP;
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex,
|
||||
unimplemented_unlock_pi);
|
||||
}
|
||||
LIN_SDT_PROBE1(futex, linux_sys_futex, return, ENOSYS);
|
||||
return (ENOSYS);
|
||||
|
||||
case LINUX_FUTEX_TRYLOCK_PI:
|
||||
/* not yet implemented */
|
||||
pem = pem_find(td->td_proc);
|
||||
if ((pem->flags & LINUX_XUNSUP_FUTEXPIOP) == 0) {
|
||||
linux_msg(td,
|
||||
"linux_sys_futex: "
|
||||
"op LINUX_FUTEX_TRYLOCK_PI not implemented\n");
|
||||
"unsupported futex_pi op\n");
|
||||
pem->flags |= LINUX_XUNSUP_FUTEXPIOP;
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex,
|
||||
unimplemented_trylock_pi);
|
||||
}
|
||||
LIN_SDT_PROBE1(futex, linux_sys_futex, return, ENOSYS);
|
||||
return (ENOSYS);
|
||||
|
||||
@ -985,21 +999,29 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args)
|
||||
|
||||
case LINUX_FUTEX_WAIT_REQUEUE_PI:
|
||||
/* not yet implemented */
|
||||
pem = pem_find(td->td_proc);
|
||||
if ((pem->flags & LINUX_XUNSUP_FUTEXPIOP) == 0) {
|
||||
linux_msg(td,
|
||||
"linux_sys_futex: "
|
||||
"op FUTEX_WAIT_REQUEUE_PI not implemented\n");
|
||||
"unsupported futex_pi op\n");
|
||||
pem->flags |= LINUX_XUNSUP_FUTEXPIOP;
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex,
|
||||
unimplemented_wait_requeue_pi);
|
||||
}
|
||||
LIN_SDT_PROBE1(futex, linux_sys_futex, return, ENOSYS);
|
||||
return (ENOSYS);
|
||||
|
||||
case LINUX_FUTEX_CMP_REQUEUE_PI:
|
||||
/* not yet implemented */
|
||||
pem = pem_find(td->td_proc);
|
||||
if ((pem->flags & LINUX_XUNSUP_FUTEXPIOP) == 0) {
|
||||
linux_msg(td,
|
||||
"linux_sys_futex: "
|
||||
"op LINUX_FUTEX_CMP_REQUEUE_PI not implemented\n");
|
||||
"unsupported futex_pi op\n");
|
||||
pem->flags |= LINUX_XUNSUP_FUTEXPIOP;
|
||||
LIN_SDT_PROBE0(futex, linux_sys_futex,
|
||||
unimplemented_cmp_requeue_pi);
|
||||
}
|
||||
LIN_SDT_PROBE1(futex, linux_sys_futex, return, ENOSYS);
|
||||
return (ENOSYS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user