From: Namhyung Kim <namhyung@kernel.org>
To: Jiri Olsa <jolsa@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Corey Ashford <cjashfor@linux.vnet.ibm.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@elte.hu>, Paul Mackerras <paulus@samba.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: [PATCH 2/3] perf tool: Add support to include non architectural event aliases
Date: Tue, 18 Dec 2012 10:12:03 +0900 [thread overview]
Message-ID: <871ueokvto.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <1355751425-7993-3-git-send-email-jolsa@redhat.com> (Jiri Olsa's message of "Mon, 17 Dec 2012 14:37:04 +0100")
Hi Jiri,
On Mon, 17 Dec 2012 14:37:04 +0100, Jiri Olsa wrote:
> Adding support to parse non architectural event aliases
> for given cpu. These aliases will be provided as 'events'
> directory like architectural ones provided by kernel.
>
[snip]
> +
> +$(OUTPUT)$(OUTPUT)arch/$(ARCH)/util/pmu.o: $(OUTPUT)arch/$(ARCH)/util/pmu.c $(OUTPUT)PERF-CFLAGS
Double OUTPUT ? ;)
> + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \
> + '-DPERF_EXEC_PATH="$(perfexecdir_SQ)"' \
> + '-DPREFIX="$(prefix_SQ)"' \
> + $<
[snip]
> +static int cpu_aliases(struct list_head *head)
> +{
> + unsigned vendol, model;
s/vendol/vendor/ ?
Thanks,
Namhyung
> + int ret;
> +
> + ret = cpu_specs(&vendol, &model);
> + if (ret) {
> + pr_info("failed to get cpu aliases");
> + return 0;
> + }
> +
> + switch (vendol) {
> + /* Intel */
> + case 0:
> + return intel_aliases(head, model);
> + default:
> + /* unknown vendor.. plenty to cover ;-) */
> + return 0;
> + }
> +
> + return 0;
> +}
next prev parent reply other threads:[~2012-12-18 1:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 13:37 [RFC 0/3] perf tool: Add non-architectural " Jiri Olsa
2012-12-17 13:37 ` [PATCH 1/3] perf tool: Add '.' as part of the event 'name' token Jiri Olsa
2012-12-17 13:37 ` [PATCH 2/3] perf tool: Add support to include non architectural event aliases Jiri Olsa
2012-12-18 1:12 ` Namhyung Kim [this message]
2012-12-18 7:41 ` Jiri Olsa
2012-12-17 13:37 ` [PATCH 3/3] perf tool: Add non arch events for SandyBridge microarchitecture Jiri Olsa
2012-12-19 21:55 ` Andi Kleen
2012-12-20 11:13 ` Jiri Olsa
2012-12-21 18:07 ` Vince Weaver
2012-12-21 18:43 ` Andi Kleen
2012-12-22 1:58 ` Vince Weaver
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=871ueokvto.fsf@sejong.aot.lge.com \
--to=namhyung@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=cjashfor@linux.vnet.ibm.com \
--cc=fweisbec@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--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
Powered by JetHome