OSDN Git Service

kdb: Provide forward search at more prompt
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 11 Sep 2014 09:37:10 +0000 (10:37 +0100)
committerJason Wessel <jason.wessel@windriver.com>
Thu, 19 Feb 2015 18:39:03 +0000 (12:39 -0600)
commitfb6daa7520f9d17a97e84a3d5a947819e0313f28
tree3495ac88045d5a21c72a2a43517980afa47774ca
parentab08e464a2cd8242fdc6e4f87f3480808364a97a
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>
kernel/debug/kdb/kdb_io.c
kernel/debug/kdb/kdb_main.c
kernel/debug/kdb/kdb_private.h