Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145975
b: refs/heads/master
c: 493762f
h: refs/heads/master
i:
  145973: 70c4a3d
  145971: d38c9e4
  145967: f9c879d
v: v3
  • Loading branch information
Steven Rostedt committed Mar 25, 2009
1 parent 4e176b4 commit 35612a5
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 192 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: bac429f037f1a51a74d62bad6d1518c3be065df3
refs/heads/master: 493762fc534c71d11d489f872c4b4a2c61173668
4 changes: 0 additions & 4 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ struct dyn_ftrace {
unsigned long flags;
struct dyn_ftrace *newlist;
};
#ifdef CONFIG_FUNCTION_PROFILER
unsigned long counter;
struct hlist_node node;
#endif
struct dyn_arch_ftrace arch;
};

Expand Down
10 changes: 3 additions & 7 deletions trunk/kernel/trace/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -379,20 +379,16 @@ config DYNAMIC_FTRACE

config FUNCTION_PROFILER
bool "Kernel function profiler"
depends on DYNAMIC_FTRACE
depends on FUNCTION_TRACER
default n
help
This option enables the kernel function profiler. When the dynamic
function tracing is enabled, a counter is added into the function
records used by the dynamic function tracer. A file is created in
debugfs called function_profile_enabled which defaults to zero.
This option enables the kernel function profiler. A file is created
in debugfs called function_profile_enabled which defaults to zero.
When a 1 is echoed into this file profiling begins, and when a
zero is entered, profiling stops. A file in the trace_stats
directory called functions, that show the list of functions that
have been hit and their counters.

This takes up around 320K more memory.

If in doubt, say N

config FTRACE_MCOUNT_RECORD
Expand Down
Loading

0 comments on commit 35612a5

Please sign in to comment.