mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Li Zefan <lizf@cn.fujitsu.com>
Cc: Eric Anholt <eric@anholt.net>,
	airlied@linux.ie, chris@chris-wilson.co.uk,
	Frederic Weisbecker <fweisbec@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>,
	dri-devel@lists.sourceforge.net
Subject: Re: [PATCH] drm/i915: Convert more trace events to DEFINE_EVENT
Date: Tue, 25 May 2010 16:08:46 -0400	[thread overview]
Message-ID: <1274818126.22648.221.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <4BFA3808.5080203@cn.fujitsu.com>

On Mon, 2010-05-24 at 16:25 +0800, Li Zefan wrote:
> Convert i915_gem_object_clflush to DEFINE_EVENT, and save ~0.5K:
> 
>    text    data     bss     dec     hex filename
>   13204    2732      12   15948    3e4c i915_trace_points.o.orig
>   12668    2732      12   15412    3c34 i915_trace_points.o
> 
> No change in functionality.
> 

Acked-by: Steven Rostedt <rostedt@goodmis.org>

I'm expecting that this will be going through the DRM/i915 path.

-- Steve

> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---
>  drivers/gpu/drm/i915/i915_trace.h |   24 +++++++-----------------
>  1 files changed, 7 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h
> index 9e4c45f..fab2176 100644
> --- a/drivers/gpu/drm/i915/i915_trace.h
> +++ b/drivers/gpu/drm/i915/i915_trace.h
> @@ -53,23 +53,6 @@ TRACE_EVENT(i915_gem_object_bind,
>  		      __entry->obj, __entry->gtt_offset)
>  );
>  
> -TRACE_EVENT(i915_gem_object_clflush,
> -
> -	    TP_PROTO(struct drm_gem_object *obj),
> -
> -	    TP_ARGS(obj),
> -
> -	    TP_STRUCT__entry(
> -			     __field(struct drm_gem_object *, obj)
> -			     ),
> -
> -	    TP_fast_assign(
> -			   __entry->obj = obj;
> -			   ),
> -
> -	    TP_printk("obj=%p", __entry->obj)
> -);
> -
>  TRACE_EVENT(i915_gem_object_change_domain,
>  
>  	    TP_PROTO(struct drm_gem_object *obj, uint32_t old_read_domains, uint32_t old_write_domain),
> @@ -132,6 +115,13 @@ DECLARE_EVENT_CLASS(i915_gem_object,
>  	    TP_printk("obj=%p", __entry->obj)
>  );
>  
> +DEFINE_EVENT(i915_gem_object, i915_gem_object_clflush,
> +
> +	    TP_PROTO(struct drm_gem_object *obj),
> +
> +	    TP_ARGS(obj)
> +);
> +
>  DEFINE_EVENT(i915_gem_object, i915_gem_object_unbind,
>  
>  	    TP_PROTO(struct drm_gem_object *obj),



  parent reply	other threads:[~2010-05-25 20:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24  8:25 Li Zefan
2010-05-25  3:36 ` Steven Rostedt
2010-05-25 20:08 ` Steven Rostedt [this message]
2010-05-26 19:00   ` Eric Anholt
2010-05-26 20:49 ` Eric Anholt

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=1274818126.22648.221.camel@gandalf.stny.rr.com \
    --to=rostedt@goodmis.org \
    --cc=airlied@linux.ie \
    --cc=chris@chris-wilson.co.uk \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=eric@anholt.net \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.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

all inboxes | Powered by JetHome®