From: Steven Rostedt <rostedt@goodmis.org>
To: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH v3 2/3] kernel-shark-qt: Add I/O for configuration data.
Date: Fri, 17 Aug 2018 08:52:35 -0400 [thread overview]
Message-ID: <20180817085235.0de3493a@gandalf.local.home> (raw)
In-Reply-To: <102a7b39-3eeb-0e00-9e1a-39578d178ece@gmail.com>
On Fri, 17 Aug 2018 12:34:27 +0300
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com> wrote:
> Hi Steven,
>
> On 16.08.2018 21:52, Steven Rostedt wrote:
> >> +/**
> >> + * @brief Check the type of a Configuration document and compare with an
> >> + * expected value.
> >> + *
> >> + * @param conf: Input location for the kshark_config_doc instance.
> >> + * @param type: Input location for the expected value of the Configuration
> >> + * document type, e.g. "kshark.record.config" or
> >> + * "kshark.filter.config".
> > Oh, I forgot to ask...
> >
> > Do you expect to have different "kshark.record" and kshark.filter"
> > options other than ".config"? If not, shouldn't it be:
> >
> > "kshark.config.record" and "kshark.config.filter" ?
> >
> > That way we can do searches for all the configs in a json file by
> > searching for "kshark.config".
> >
> >
>
> My logic was that in the future we may have KernelShark doing some
> automated analyses over the trace data. In this case the result can be
> outputted to a Json file and have a type "kshark.*.output". So I
> intuitively added the ".config" at the end, like a file extension.
>
> However your logic makes sense and I am OK with switching the order.
Yes please. Naming like this is usually done in "reverse" language.
Similar to DNS names. Although we may type "www.vmware.com", it is
really processed in the order of "com:vmware:www". And with config
names, the more detailed the data, the farther out it goes:
<domain>.<subdomain>.<topic>.<detailed_topic>
Thanks!
-- Steve
next prev parent reply other threads:[~2018-08-17 15:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-16 15:07 [PATCH v3 1/3] kernel-shark-qt: Add Json-C as a third party dependency Yordan Karadzhov (VMware)
2018-08-16 15:07 ` [PATCH v3 2/3] kernel-shark-qt: Add I/O for configuration data Yordan Karadzhov (VMware)
2018-08-16 18:52 ` Steven Rostedt
2018-08-17 9:32 ` Yordan Karadzhov (VMware)
2018-08-17 12:49 ` Steven Rostedt
2018-08-17 14:13 ` Yordan Karadzhov (VMware)
2018-08-17 14:58 ` Steven Rostedt
2018-08-17 15:09 ` Yordan Karadzhov (VMware)
2018-08-17 15:12 ` Steven Rostedt
2018-08-17 15:29 ` Yordan Karadzhov (VMware)
2018-08-17 15:34 ` Steven Rostedt
2018-08-17 9:34 ` Yordan Karadzhov (VMware)
2018-08-17 12:52 ` Steven Rostedt [this message]
2018-08-17 14:15 ` Yordan Karadzhov (VMware)
2018-08-16 15:07 ` [PATCH v3 3/3] kernel-shark-qt: Add an example showing how to import/export config. data 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=20180817085235.0de3493a@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).