diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-18 11:19:03 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-18 11:19:03 -0400 |
| commit | 4d7b4ac22fbec1a03206c6cde353f2fd6942f828 (patch) | |
| tree | 2d96a9e9c28cf6fa628a278decc00ad55a8b043b /tools/perf/util/cache.h | |
| parent | 3aaf51ace5975050ab43c7d4d7e439e0ae7d13d7 (diff) | |
| parent | 94f3ca95787ada3d64339a4ecb2754236ab563f6 (diff) | |
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (311 commits)
perf tools: Add mode to build without newt support
perf symbols: symbol inconsistency message should be done only at verbose=1
perf tui: Add explicit -lslang option
perf options: Type check all the remaining OPT_ variants
perf options: Type check OPT_BOOLEAN and fix the offenders
perf options: Check v type in OPT_U?INTEGER
perf options: Introduce OPT_UINTEGER
perf tui: Add workaround for slang < 2.1.4
perf record: Fix bug mismatch with -c option definition
perf options: Introduce OPT_U64
perf tui: Add help window to show key associations
perf tui: Make <- exit menus too
perf newt: Add single key shortcuts for zoom into DSO and threads
perf newt: Exit browser unconditionally when CTRL+C, q or Q is pressed
perf newt: Fix the 'A'/'a' shortcut for annotate
perf newt: Make <- exit the ui_browser
x86, perf: P4 PMU - fix counters management logic
perf newt: Make <- zoom out filters
perf report: Report number of events, not samples
perf hist: Clarify events_stats fields usage
...
Fix up trivial conflicts in kernel/fork.c and tools/perf/builtin-record.c
Diffstat (limited to 'tools/perf/util/cache.h')
| -rw-r--r-- | tools/perf/util/cache.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 918eb376abe3..4b9aab7f0405 100644 --- a/tools/perf/util/cache.h +++ b/tools/perf/util/cache.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #ifndef __PERF_CACHE_H | 1 | #ifndef __PERF_CACHE_H |
| 2 | #define __PERF_CACHE_H | 2 | #define __PERF_CACHE_H |
| 3 | 3 | ||
| 4 | #include <stdbool.h> | ||
| 4 | #include "util.h" | 5 | #include "util.h" |
| 5 | #include "strbuf.h" | 6 | #include "strbuf.h" |
| 6 | #include "../perf.h" | 7 | #include "../perf.h" |
| @@ -69,6 +70,19 @@ extern const char *pager_program; | |||
| 69 | extern int pager_in_use(void); | 70 | extern int pager_in_use(void); |
| 70 | extern int pager_use_color; | 71 | extern int pager_use_color; |
| 71 | 72 | ||
| 73 | extern bool use_browser; | ||
| 74 | |||
| 75 | #ifdef NO_NEWT_SUPPORT | ||
| 76 | static inline void setup_browser(void) | ||
| 77 | { | ||
| 78 | setup_pager(); | ||
| 79 | } | ||
| 80 | static inline void exit_browser(bool wait_for_ok __used) {} | ||
| 81 | #else | ||
| 82 | void setup_browser(void); | ||
| 83 | void exit_browser(bool wait_for_ok); | ||
| 84 | #endif | ||
| 85 | |||
| 72 | extern const char *editor_program; | 86 | extern const char *editor_program; |
| 73 | extern const char *excludes_file; | 87 | extern const char *excludes_file; |
| 74 | 88 | ||
