ftrace.c (af64a7cb09db77344c596a0bf3d57d77257e8bf5) ftrace.c (3a36cb11ca65cd6804972eaf1000378ba4384ea7)
1/*
2 * Infrastructure for profiling code inserted by 'gcc -pg'.
3 *
4 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com>
5 * Copyright (C) 2004-2008 Ingo Molnar <mingo@redhat.com>
6 *
7 * Originally ported from the -rt patch by:
8 * Copyright (C) 2007 Arnaldo Carvalho de Melo <acme@redhat.com>

--- 4358 unchanged lines hidden (view full) ---

4367 .notifier_call = ftrace_module_notify_exit,
4368 .priority = INT_MIN, /* Run after anything that can remove kprobes */
4369};
4370
4371void __init ftrace_init(void)
4372{
4373 extern unsigned long __start_mcount_loc[];
4374 extern unsigned long __stop_mcount_loc[];
1/*
2 * Infrastructure for profiling code inserted by 'gcc -pg'.
3 *
4 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com>
5 * Copyright (C) 2004-2008 Ingo Molnar <mingo@redhat.com>
6 *
7 * Originally ported from the -rt patch by:
8 * Copyright (C) 2007 Arnaldo Carvalho de Melo <acme@redhat.com>

--- 4358 unchanged lines hidden (view full) ---

4367 .notifier_call = ftrace_module_notify_exit,
4368 .priority = INT_MIN, /* Run after anything that can remove kprobes */
4369};
4370
4371void __init ftrace_init(void)
4372{
4373 extern unsigned long __start_mcount_loc[];
4374 extern unsigned long __stop_mcount_loc[];
4375 unsigned long count, addr, flags;
4375 unsigned long count, flags;
4376 int ret;
4377
4376 int ret;
4377
4378 /* Keep the ftrace pointer to the stub */
4379 addr = (unsigned long)ftrace_stub;
4380
4381 local_irq_save(flags);
4378 local_irq_save(flags);
4382 ret = ftrace_dyn_arch_init(&addr);
4379 ret = ftrace_dyn_arch_init();
4383 local_irq_restore(flags);
4384 if (ret)
4385 goto failed;
4386
4387 count = __stop_mcount_loc - __start_mcount_loc;
4388 if (!count) {
4389 pr_info("ftrace: No functions to be traced?\n");
4390 goto failed;

--- 851 unchanged lines hidden ---
4380 local_irq_restore(flags);
4381 if (ret)
4382 goto failed;
4383
4384 count = __stop_mcount_loc - __start_mcount_loc;
4385 if (!count) {
4386 pr_info("ftrace: No functions to be traced?\n");
4387 goto failed;

--- 851 unchanged lines hidden ---