From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754511AbbJSShY (ORCPT ); Mon, 19 Oct 2015 14:37:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37714 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbbJSShX (ORCPT ); Mon, 19 Oct 2015 14:37:23 -0400 Date: Mon, 19 Oct 2015 16:37:20 -0200 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Namhyung Kim , David Ahern , Jiri Olsa , Hitoshi Mitake , Linus Torvalds , Thomas Gleixner , acme@kernel.org Subject: Re: [PATCH 04/14] perf/bench: Rename 'mem-memcpy.c' => 'mem-functions.c' Message-ID: <20151019183720.GD2359@redhat.com> References: <1445241870-24854-1-git-send-email-mingo@kernel.org> <1445241870-24854-5-git-send-email-mingo@kernel.org> <20151019183520.GC2359@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151019183520.GC2359@redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Oct 19, 2015 at 04:35:20PM -0200, Arnaldo Carvalho de Melo escreveu: > Em Mon, Oct 19, 2015 at 10:04:20AM +0200, Ingo Molnar escreveu: > > So mem-memcpy.c started out as a simple memcpy() benchmark, then > > it grew memset() functionality and now I plan to add string copy > > benchmarks as well. > > > > This makes the file name a misnomer: rename it to the more generic > > mem-functions.c name. > > > > Cc: Arnaldo Carvalho de Melo > > Cc: David Ahern > > Cc: Hitoshi Mitake > > Cc: Jiri Olsa > > Cc: Linus Torvalds > > Cc: Namhyung Kim > > Cc: Peter Zijlstra > > Cc: Thomas Gleixner > > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Ingo Molnar > > --- > > tools/perf/bench/Build | 2 +- > > tools/perf/bench/mem-functions.c | 420 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Oops, this is not renaming anything, right? And it also introducs > __unused usage, which breaks the build. > > Lemme try to do it... Just after applying this patch, I tried a diff and figure this, fixing it by just renaming it. $ diff -u tools/perf/bench/mem-memcpy.c tools/perf/bench/mem-functions.c --- tools/perf/bench/mem-memcpy.c 2015-10-19 15:29:08.761643798 -0300 +++ tools/perf/bench/mem-functions.c 2015-10-19 15:35:34.986776289 -0300 @@ -1,7 +1,7 @@ /* - * mem-memcpy.c + * mem-functions.c * - * Simple memcpy() and memset() benchmarks + * Simple memcpy() and memset() benchmarks. * * Written by Hitoshi Mitake */ @@ -324,7 +324,7 @@ return (double)(((double)len * iterations) / timeval2double(&tv_diff)); } -int bench_mem_memcpy(int argc, const char **argv, const char *prefix __maybe_unused) +int bench_mem_memcpy(int argc, const char **argv, const char *prefix __unused) { struct bench_mem_info info = { .routines = memcpy_routines, @@ -407,7 +407,7 @@ { NULL, } }; -int bench_mem_memset(int argc, const char **argv, const char *prefix __maybe_unused) +int bench_mem_memset(int argc, const char **argv, const char *prefix __unused) { struct bench_mem_info info = { .routines = memset_routines,