* [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter
@ 2017-10-09 15:19 Alex Bennée
2017-10-09 16:11 ` Laurent Vivier
2017-10-09 16:32 ` no-reply
0 siblings, 2 replies; 3+ messages in thread
From: Alex Bennée @ 2017-10-09 15:19 UTC (permalink / raw)
To: qemu-devel; +Cc: Alex Bennée, Riku Voipio, Laurent Vivier
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
linux-user/main.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/linux-user/main.c b/linux-user/main.c
index 829f974662..5072aa855b 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -3854,6 +3854,11 @@ static void handle_arg_log(const char *arg)
qemu_set_log(mask);
}
+static void handle_arg_dfilter(const char *arg)
+{
+ qemu_set_dfilter_ranges(arg, NULL);
+}
+
static void handle_arg_log_filename(const char *arg)
{
qemu_set_log_filename(arg, &error_fatal);
@@ -4054,6 +4059,8 @@ static const struct qemu_argument arg_table[] = {
{"d", "QEMU_LOG", true, handle_arg_log,
"item[,...]", "enable logging of specified items "
"(use '-d help' for a list of items)"},
+ {"dfilter", "QEMU_DFILTER", true, handle_arg_dfilter,
+ "range[,...]","filter logging based on address range"},
{"D", "QEMU_LOG_FILENAME", true, handle_arg_log_filename,
"logfile", "write logs to 'logfile' (default stderr)"},
{"p", "QEMU_PAGESIZE", true, handle_arg_pagesize,
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter
2017-10-09 15:19 [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter Alex Bennée
@ 2017-10-09 16:11 ` Laurent Vivier
2017-10-09 16:32 ` no-reply
1 sibling, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2017-10-09 16:11 UTC (permalink / raw)
To: Alex Bennée, qemu-devel; +Cc: Riku Voipio
Le 09/10/2017 à 17:19, Alex Bennée a écrit :
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> linux-user/main.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 829f974662..5072aa855b 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -3854,6 +3854,11 @@ static void handle_arg_log(const char *arg)
> qemu_set_log(mask);
> }
>
> +static void handle_arg_dfilter(const char *arg)
> +{
> + qemu_set_dfilter_ranges(arg, NULL);
> +}
> +
> static void handle_arg_log_filename(const char *arg)
> {
> qemu_set_log_filename(arg, &error_fatal);
> @@ -4054,6 +4059,8 @@ static const struct qemu_argument arg_table[] = {
> {"d", "QEMU_LOG", true, handle_arg_log,
> "item[,...]", "enable logging of specified items "
> "(use '-d help' for a list of items)"},
> + {"dfilter", "QEMU_DFILTER", true, handle_arg_dfilter,
> + "range[,...]","filter logging based on address range"},
> {"D", "QEMU_LOG_FILENAME", true, handle_arg_log_filename,
> "logfile", "write logs to 'logfile' (default stderr)"},
> {"p", "QEMU_PAGESIZE", true, handle_arg_pagesize,
>
It's really an interesting feature, I think it will be very useful to
debug linux-user QEMU.
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter
2017-10-09 15:19 [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter Alex Bennée
2017-10-09 16:11 ` Laurent Vivier
@ 2017-10-09 16:32 ` no-reply
1 sibling, 0 replies; 3+ messages in thread
From: no-reply @ 2017-10-09 16:32 UTC (permalink / raw)
To: alex.bennee; +Cc: famz, qemu-devel, riku.voipio, laurent
Hi,
This series seems to have some coding style problems. See output below for
more information:
Type: series
Message-id: 20171009151926.1708-1-alex.bennee@linaro.org
Subject: [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))
done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/1507564902-9000-1-git-send-email-ian.jackson@eu.citrix.com -> patchew/1507564902-9000-1-git-send-email-ian.jackson@eu.citrix.com
t [tag update] patchew/20171009151926.1708-1-alex.bennee@linaro.org -> patchew/20171009151926.1708-1-alex.bennee@linaro.org
* [new tag] patchew/20171009155431.14093-1-mreitz@redhat.com -> patchew/20171009155431.14093-1-mreitz@redhat.com
Switched to a new branch 'test'
05158b0e6a linux-user/main: support dfilter
=== OUTPUT BEGIN ===
Checking PATCH 1/1: linux-user/main: support dfilter...
ERROR: space required after that ',' (ctx:VxV)
#34: FILE: linux-user/main.c:4063:
+ "range[,...]","filter logging based on address range"},
^
total: 1 errors, 0 warnings, 19 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@freelists.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-09 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 15:19 [Qemu-devel] [RFC PATCH] linux-user/main: support dfilter Alex Bennée
2017-10-09 16:11 ` Laurent Vivier
2017-10-09 16:32 ` no-reply
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).