Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188493
b: refs/heads/master
c: aebfef0
h: refs/heads/master
i:
  188491: 6c87a3e
v: v3
  • Loading branch information
Mike Frysinger committed Mar 9, 2010
1 parent 7469e41 commit 8b67241
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6388d14eb2dd3af655cee28ca2a1c56881e63e56
refs/heads/master: aebfef03249819886a7f9c981940cbd48d82ea47
1 change: 1 addition & 0 deletions trunk/arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ config BLACKFIN
def_bool y
select HAVE_FUNCTION_GRAPH_TRACER
select HAVE_FUNCTION_TRACER
select HAVE_FUNCTION_TRACE_MCOUNT_TEST
select HAVE_IDE
select HAVE_KERNEL_GZIP if RAMKERNEL
select HAVE_KERNEL_BZIP2 if RAMKERNEL
Expand Down
11 changes: 10 additions & 1 deletion trunk/arch/blackfin/kernel/ftrace-entry.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mcount and friends -- ftrace stuff
*
* Copyright (C) 2009 Analog Devices Inc.
* Copyright (C) 2009-2010 Analog Devices Inc.
* Licensed under the GPL-2 or later.
*/

Expand All @@ -21,6 +21,15 @@
* function will be waiting there. mmmm pie.
*/
ENTRY(__mcount)
#ifdef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
/* optional micro optimization: return if stopped */
p1.l = _function_trace_stop;
p1.h = _function_trace_stop;
r3 = [p1];
cc = r3 == 0;
if ! cc jump _ftrace_stub (bp);
#endif

/* save third function arg early so we can do testing below */
[--sp] = r2;

Expand Down

0 comments on commit 8b67241

Please sign in to comment.