aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/debug/kdb/kdb_private.h
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2014-09-11 10:37:10 +0100
committerJason Wessel <jason.wessel@windriver.com>2015-02-19 12:39:03 -0600
commitfb6daa7520f9d17a97e84a3d5a947819e0313f28 (patch)
tree3495ac88045d5a21c72a2a43517980afa47774ca /kernel/debug/kdb/kdb_private.h
parentkdb: Fix a prompt management bug when using | grep (diff)
downloadlinux-dev-fb6daa7520f9d17a97e84a3d5a947819e0313f28.tar.xz
linux-dev-fb6daa7520f9d17a97e84a3d5a947819e0313f28.zip
kdb: Provide forward search at more prompt
Currently kdb allows the output of comamnds to be filtered using the | grep feature. This is useful but does not permit the output emitted shortly after a string match to be examined without wading through the entire unfiltered output of the command. Such a feature is particularly useful to navigate function traces because these traces often have a useful trigger string *before* the point of interest. This patch reuses the existing filtering logic to introduce a simple forward search to kdb that can be triggered from the more prompt. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to '')
-rw-r--r--kernel/debug/kdb/kdb_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/debug/kdb/kdb_private.h b/kernel/debug/kdb/kdb_private.h
index eaacd1693954..da93894db7ba 100644
--- a/kernel/debug/kdb/kdb_private.h
+++ b/kernel/debug/kdb/kdb_private.h
@@ -196,7 +196,9 @@ extern int kdb_main_loop(kdb_reason_t, kdb_reason_t,
/* Miscellaneous functions and data areas */
extern int kdb_grepping_flag;
+#define KDB_GREPPING_FLAG_SEARCH 0x8000
extern char kdb_grep_string[];
+#define KDB_GREP_STRLEN 256
extern int kdb_grep_leading;
extern int kdb_grep_trailing;
extern char *kdb_cmds[];