/* The BL at the callsite's adjusted rec->ip */ #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE
#define FTRACE_PLT_IDX 0 #define NR_FTRACE_PLTS 1
/* * Currently, gcc tends to save the link register after the local variables * on the stack. This causes the max stack tracer to report the function * frame sizes for the wrong functions. By defining * ARCH_FTRACE_SHIFT_STACK_TRACER, it will tell the stack tracer to expect * to find the return address on the stack after the local variables have * been set up. * * Note, this may change in the future, and we will need to deal with that * if it were to happen.
*/ #define ARCH_FTRACE_SHIFT_STACK_TRACER 1
/* * Because AArch32 mode does not share the same syscall table with AArch64, * tracing compat syscalls may result in reporting bogus syscalls or even * hang-up, so just do not trace them. * See kernel/trace/trace_syscalls.c * * x86 code says: * If the user really wants these, then they should use the * raw syscall tracepoints with filtering.
*/ #define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS staticinlinebool arch_trace_is_compat_syscall(struct pt_regs *regs)
{ return is_compat_task();
}
#define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
staticinlinebool arch_syscall_match_sym_name(constchar *sym, constchar *name)
{ /* * Since all syscall functions have __arm64_ prefix, we must skip it. * However, as we described above, we decided to ignore compat * syscalls, so we don't care about __arm64_compat_ prefix here.
*/ return !strcmp(sym + 8, name);
} #endif/* ifndef __ASSEMBLY__ */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.