From: Christoph Hellwig <hch@infradead.org>
To: Tom Zanussi <zanussi@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, adobriyan@gmail.com,
dwilder@us.ibm.com, hunt@redhat.com
Subject: Re: [RFC PATCH 2/3] Generic Trace Setup and Control (GTSC) code
Date: Sat, 14 Jul 2007 17:48:19 +0100 [thread overview]
Message-ID: <20070714164819.GA14489@infradead.org> (raw)
In-Reply-To: <1183173872.24291.144.camel@ubuntu>
On Fri, Jun 29, 2007 at 10:24:32PM -0500, Tom Zanussi wrote:
> The Generic Tracing and Control Interface (GTSC) code.
The code looks fine to me from a first look, but the the name is just dumb.
Given that all your internal identifiers are trace_* or TRACE_ go all
the way and make it CONFIG_TRACE and lib/trace.c aswell.
Long term we probably want more complex tracing based on lttng, but I'm
a big fan of starting out simple and doing incremental changes.
So my 1c for merging this in 2.6.23 with the exports ripped out until
we actually grow modular users (which will probably come with the blktrace
markers conversion later on)
> +static inline struct trace_info *trace_setup(const char *root,
> + const char *name,
> + u32 buf_size,
> + u32 buf_nr,
> + u32 flags)
static inline struct trace_info *trace_setup(const char *root,
const char *name, u32 buf_size, u32 buf_nr, u32 flags)
> + * Based on blktrace code, Copyright (C) 2006 Jens Axboe <axboe@suse.de>
> + * Moved to utt.c by Tom Zanussi <zanussi@us.ibm.com>, 2006
It's gstc.c now and should be trace.c, nevermind that filename doesn't
really belong here anyway :)
> +unsigned long long trace_timestamp(void)
> +{
> + return sched_clock();
> +}
> +EXPORT_SYMBOL_GPL(trace_timestamp);
Using sched_clock is quite dangerous. And just adding a wrapper to get
it exported is not nice either :)
prev parent reply other threads:[~2007-07-14 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-30 3:24 [RFC PATCH 2/3] Generic Trace Setup and Control (GTSC) code Tom Zanussi
2007-07-04 3:37 ` Mathieu Desnoyers
2007-07-04 3:47 ` Mathieu Desnoyers
2007-07-14 16:48 ` Christoph Hellwig [this message]
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=20070714164819.GA14489@infradead.org \
--to=hch@infradead.org \
--cc=adobriyan@gmail.com \
--cc=dwilder@us.ibm.com \
--cc=hunt@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zanussi@us.ibm.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