~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/powerpc/include/asm/ftrace.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
#endif
62
62
 
 
63
#if defined(CONFIG_FTRACE_SYSCALLS) && defined(CONFIG_PPC64) && !defined(__ASSEMBLY__)
 
64
#define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
 
65
static inline bool arch_syscall_match_sym_name(const char *sym, const char *name)
 
66
{
 
67
        /*
 
68
         * Compare the symbol name with the system call name. Skip the .sys or .SyS
 
69
         * prefix from the symbol name and the sys prefix from the system call name and
 
70
         * just match the rest. This is only needed on ppc64 since symbol names on
 
71
         * 32bit do not start with a period so the generic function will work.
 
72
         */
 
73
        return !strcmp(sym + 4, name + 3);
 
74
}
 
75
#endif /* CONFIG_FTRACE_SYSCALLS && CONFIG_PPC64 && !__ASSEMBLY__ */
 
76
 
63
77
#endif /* _ASM_POWERPC_FTRACE */