public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl,
	paulus@samba.org, fweisbec@gmail.com, ling.ma@intel.com
Subject: Re: [PATCH 1/4] perf bench: Add new subsystem and new suite, bench/mem-memcpy.c
Date: Tue, 17 Nov 2009 12:21:48 +0100	[thread overview]
Message-ID: <20091117112148.GA32578@elte.hu> (raw)
In-Reply-To: <20091117.201925.543479723824311889.mitake@dcl.info.waseda.ac.jp>


* Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> wrote:

> From: Ingo Molnar <mingo@elte.hu>
> Subject: Re: [PATCH 1/4] perf bench: Add new subsystem and new suite, bench/mem-memcpy.c
> Date: Fri, 13 Nov 2009 10:46:50 +0100
> 
> I've fixed mem-memcpy.c according to your comment,
> but I also have some comments.
> 
> > 
> > > +};
> > > +
> > > +struct routine routines[] = {
> > > +	{ "default",
> > > +	  memcpy,
> > > +	  "Default memcpy() provided by glibc" },
> > > +	{ NULL,
> > > +	  NULL,
> > > +	  NULL }
> > 
> > { NULL, } would be equivalent i guess.
> 
> Initializing the termination with { NULL, } causes build error.
> So I can't change this point.

ah, ok.

> 
> > > +		break;
> > > +	case BENCH_FORMAT_SIMPLE:
> > > +		if (use_clockcycle)
> > > +			printf("%lf\n",
> > > +			       (double)clock_diff / (double)length);
> > > +		else
> > > +			printf("%lf\n", bps);
> > > +		break;
> > > +	default:
> > > +		/* reaching here is something disaster */
> > > +		fprintf(stderr, "Unknown format:%d\n", bench_format);
> > 
> > could use pr_err() here i guess.
> 
> It seems that pr_err() is a wrapper for printk(),
> so I can't use pr_err() in perf.

ok.

	Ingo

  reply	other threads:[~2009-11-17 11:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13  4:23 [PATCH 0/4] perf bench: Add new subsystem "mem" and new suite "memcpy" Hitoshi Mitake
2009-11-13  4:23 ` [PATCH 1/4] perf bench: Add new subsystem and new suite, bench/mem-memcpy.c Hitoshi Mitake
2009-11-13  9:46   ` Ingo Molnar
2009-11-15  3:50     ` Hitoshi Mitake
2009-11-17 11:19     ` Hitoshi Mitake
2009-11-17 11:21       ` Ingo Molnar [this message]
2009-11-17 11:42         ` [PATCH 1/4] perf bench: Add mem-memcpy.c:memcpy() benchmark Hitoshi Mitake
2009-11-17 12:53           ` Ingo Molnar
2009-11-17 14:36             ` Hitoshi Mitake
2009-11-17 15:09               ` [PATCH v2 " Hitoshi Mitake
2009-11-17 15:09               ` [PATCH v2 2/4] perf bench: Modify bench.h for prototype of bench_mem_memcpy() Hitoshi Mitake
2009-11-17 15:09               ` [PATCH v2 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem" Hitoshi Mitake
2009-11-17 15:09               ` [PATCH v2 4/4] perf bench: Modify Makefile for new source file mem-memcpy.c Hitoshi Mitake
2009-11-17 15:11                 ` Hitoshi Mitake
2009-11-17 15:15                   ` [PATCH v2 1/4] perf bench: Add mem-memcpy.c:memcpy() benchmark Hitoshi Mitake
2009-11-17 15:15                   ` [PATCH v2 2/4] perf bench: Modify bench.h for prototype of bench_mem_memcpy() Hitoshi Mitake
2009-11-17 15:15                   ` [PATCH v2 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem" Hitoshi Mitake
2009-11-17 15:15                   ` [PATCH v2 4/4] perf bench: Modify Makefile for new source file mem-memcpy.c Hitoshi Mitake
2009-11-17 15:18                     ` Hitoshi Mitake
2009-11-17 15:20                       ` [PATCH v3 1/4] perf bench: Add mem-memcpy.c:memcpy() benchmark Hitoshi Mitake
2009-11-17 15:42                         ` [tip:perf/core] perf bench: Add memcpy() benchmark tip-bot for Hitoshi Mitake
2009-11-19  5:36                         ` [tip:perf/bench] " tip-bot for Hitoshi Mitake
2009-11-17 15:20                       ` [PATCH v3 2/4] perf bench: Modify bench.h for prototype of bench_mem_memcpy() Hitoshi Mitake
2009-11-17 15:20                       ` [PATCH v3 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem" Hitoshi Mitake
2009-11-17 15:20                       ` [PATCH v3 4/4] perf bench: Modify Makefile for new source file mem-memcpy.c Hitoshi Mitake
2009-11-17 15:37                       ` [PATCH v2 " Ingo Molnar
2009-11-17 15:42                         ` Ingo Molnar
2009-11-18  1:42                           ` Hitoshi Mitake
2009-11-17 11:42         ` [PATCH 2/4] perf bench: Modify bench.h for prototype of bench_mem_memcpy() Hitoshi Mitake
2009-11-17 11:42         ` [PATCH 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem" Hitoshi Mitake
2009-11-17 11:42         ` [PATCH 4/4] perf bench: Modify Makefile for new source file mem-memcpy.c Hitoshi Mitake
2009-11-13  4:23 ` [PATCH 2/4] perf bench: Modify bench/bench.h for new prototype: bench_mem_memcpy() Hitoshi Mitake
2009-11-13  4:23 ` [PATCH 3/4] perf bench: Modify builtin-bench.c for new subsystem "mem" Hitoshi Mitake
2009-11-13  4:23 ` [PATCH 4/4] perf bench: Modify Makefile to build " Hitoshi Mitake

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=20091117112148.GA32578@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=fweisbec@gmail.com \
    --cc=ling.ma@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mitake@dcl.info.waseda.ac.jp \
    --cc=paulus@samba.org \
    /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