From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Wang Nan <wangnan0@huawei.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org, zhangzhiqiang.zhang@huawei.com,
peifeiyue@huawei.com
Subject: Re: [PATCH] perf tools: fix incorrect header string
Date: Wed, 15 Oct 2014 12:13:58 -0300 [thread overview]
Message-ID: <20141015151358.GK3198@kernel.org> (raw)
In-Reply-To: <1413343733-7973-1-git-send-email-wangnan0@huawei.com>
Em Wed, Oct 15, 2014 at 11:28:53AM +0800, Wang Nan escreveu:
> Commit fbe96f29 (perf tools: Make perf.data more self-descriptive)
> read '/proc/cpuinfo' to form cpu descriptor. For ARM, it finds
> 'Processor' field. It is correct when the patch merged, but due to
> commit b4b8f770 (ARM: kernel: update cpuinfo to print all online CPUs
> features), the corresponding information becomes 'model name' field.
>
> This patch simply corrects it.
It doesn't :-)
It makes it work with kernels >= b4b8f770, and fail with older kernels.
We need to somehow figure out where the right information is regardless
of the kernel.
- Arnaldo
> Signed-off-by: Wang Nan <wangnan0@huawei.com>
> ---
> tools/perf/perf-sys.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
> index 937e432..4293970 100644
> --- a/tools/perf/perf-sys.h
> +++ b/tools/perf/perf-sys.h
> @@ -113,7 +113,7 @@
> #define mb() ((void(*)(void))0xffff0fa0)()
> #define wmb() ((void(*)(void))0xffff0fa0)()
> #define rmb() ((void(*)(void))0xffff0fa0)()
> -#define CPUINFO_PROC "Processor"
> +#define CPUINFO_PROC "model name"
> #endif
>
> #ifdef __aarch64__
> --
> 1.8.4
next prev parent reply other threads:[~2014-10-15 15:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 3:28 [PATCH] perf tools: fix incorrect header string Wang Nan
2014-10-15 15:13 ` Arnaldo Carvalho de Melo [this message]
2014-10-16 3:21 ` Wang Nan
2014-10-16 14:55 ` Arnaldo Carvalho de Melo
2014-10-21 3:56 ` Wang Nan
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=20141015151358.GK3198@kernel.org \
--to=acme@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
--cc=peifeiyue@huawei.com \
--cc=wangnan0@huawei.com \
--cc=zhangzhiqiang.zhang@huawei.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