From: Steven Rostedt <rostedt@goodmis.org>
To: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH v2 6/9] kernel-shark-qt: Add filtering to the C API of KernelShark
Date: Thu, 28 Jun 2018 19:29:05 -0400 [thread overview]
Message-ID: <20180628192905.7773b9fa@gandalf.local.home> (raw)
In-Reply-To: <20180628163012.21477-7-y.karadz@gmail.com>
On Thu, 28 Jun 2018 19:30:09 +0300
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com> wrote:
> +static void unset_event_filter_flag(struct kshark_context *kshark_ctx,
> + struct kshark_entry *e)
> +{
> + /*
> + * All entries, filtered-out by the event filters, will be treated
> + * differently, when visualized. Because of this, ignore the value
> + * of the GRAPH_VIEW flag provided by the user via
> + * kshark_ctx->filter_mask and unset the EVENT_VIEW flag.
> + */
> + int event_mask = kshark_ctx->filter_mask;
Just to get you use to Linux kernel coding style. Always add a space
between the declaration and the code. Even when the declaration has
code.
There's a few places where this requirement is not strictly forced, but
we'll discuss that later.
> + event_mask &= ~KS_GRAPH_VIEW_FILTER_MASK;
> + event_mask |= KS_EVENT_VIEW_FILTER_MASK;
> + e->visible &= ~event_mask;
> +}
> +
> +void kshark_filter_entries(struct kshark_context *kshark_ctx,
> + struct kshark_entry **data,
> + size_t n_entries)
> +{
> + int i;
Here too, and any other places that has declarations.
-- Steve
> + if (!kshark_filter_is_set(kshark_ctx))
> + return;
> +
next prev parent reply other threads:[~2018-06-28 23:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 16:30 [PATCH v2 0/9] Introduce the basic part of the C API of KS-1.0 Yordan Karadzhov (VMware)
2018-06-28 16:30 ` [PATCH v2 1/9] kernel-shark-qt: Add Cmake build system for the Qt based KernelShark Yordan Karadzhov (VMware)
2018-06-28 16:30 ` [PATCH v2 2/9] kernel-shark-qt: Automatic generation of doxygen documentation Yordan Karadzhov (VMware)
2018-06-28 16:30 ` [PATCH v2 3/9] kernel-shark-qt: Add API for loading trace.dat files Yordan Karadzhov (VMware)
2018-06-28 20:32 ` Steven Rostedt
2018-06-28 20:41 ` Steven Rostedt
2018-06-28 21:55 ` Steven Rostedt
2018-06-28 21:57 ` Steven Rostedt
2018-06-28 16:30 ` [PATCH v2 4/9] kernel-shark-qt: Add an example showing how to load trace data Yordan Karadzhov (VMware)
2018-06-28 16:30 ` [PATCH v2 5/9] kernel-shark-qt: Add a README file to trace-cmd/kernel-shark-qt Yordan Karadzhov (VMware)
2018-06-28 16:30 ` [PATCH v2 6/9] kernel-shark-qt: Add filtering to the C API of KernelShark Yordan Karadzhov (VMware)
2018-06-28 23:29 ` Steven Rostedt [this message]
2018-06-28 23:44 ` Steven Rostedt
2018-06-28 16:30 ` [PATCH v2 7/9] kernel-shark-qt: Add an example showing how to filter trace data Yordan Karadzhov (VMware)
2018-06-28 16:30 ` [PATCH v2 8/9] kernel-shark-qt: Add Advanced filter to the session context Yordan Karadzhov (VMware)
2018-06-28 23:37 ` Steven Rostedt
2018-06-28 16:30 ` [PATCH v2 9/9] kernel-shark-qt: Add example of advanded filtering Yordan Karadzhov (VMware)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180628192905.7773b9fa@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=y.karadz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).