Commit 9d8010f8 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

cobalt/tracing: fix X86_X32 build w/o IA32_EMULATION

CONFIG_X86_X32 used to depend on CONFIG_IA32_EMULATION. Since upstream
commit #9b54050b, this is not the case anymore, and both options can
be enabled separately.

Remove the assumption about such dependency, fixing the build issue.
parent a4f159ea
......@@ -42,22 +42,23 @@
#define __timespec_args(__name) \
__entry->tv_sec_##__name, __entry->tv_nsec_##__name
#ifdef CONFIG_X86_64
#ifdef CONFIG_X86_X32
#define __cobalt_symbolic_syscall(name) \
{sc_cobalt_##name, #name}, \
{sc_cobalt_##name + __COBALT_IA32_BASE, "compat-" #name}, \
{sc_cobalt_##name + __COBALT_X32_BASE, "x32-" #name}
#else /* !CONFIG_X86_X32 */
#define __cobalt_symbolic_syscall(name) \
{sc_cobalt_##name, #name}, \
{sc_cobalt_##name + __COBALT_IA32_BASE, "compat-" #name}
#define __sc_x32(__name) , { sc_cobalt_##__name + __COBALT_X32_BASE, "x32-" #__name }
#else
#define __sc_x32(__name)
#endif
#else /* !CONFIG_X86_64 */
#define __cobalt_symbolic_syscall(name) \
{sc_cobalt_##name, #name}
#ifdef CONFIG_IA32_EMULATION
#define __sc_compat(__name) , { sc_cobalt_##__name + __COBALT_IA32_BASE, "compat-" #__name }
#else
#define __sc_compat(__name)
#endif
#define __cobalt_symbolic_syscall(__name) \
{ sc_cobalt_##__name, #__name } \
__sc_x32(__name) \
__sc_compat(__name) \
#define __cobalt_syscall_name(__nr) \
__print_symbolic((__nr), \
__cobalt_symbolic_syscall(bind), \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment