From: Zhang Rui <rui.zhang@intel.com>
To: peterz@infradead.org
Cc: LKML <linux-kernel@vger.kernel.org>,
mingo@elte.hu, robert.richter@amd.com, acme@redhat.com,
paulus@samba.org, dzickus@redhat.com, gorcunov@gmail.com,
fweisbec@gmail.com, Lin Ming <ming.m.lin@intel.com>,
"Brown, Len" <lenb@kernel.org>,
Matthew Garrett <mjg59@srcf.ucam.org>,
"Zhang, Rui" <rui.zhang@intel.com>
Subject: [RFC PATCH 3/3] perf: support PERF_COUNT_SW_RAPL_ENERGY in perf tool
Date: Wed, 18 Aug 2010 15:59:35 +0800 [thread overview]
Message-ID: <1282118375.5181.118.camel@rui> (raw)
Support PERF_COUNT_SW_RAPL_ENERGY in perf tool.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
tools/perf/design.txt | 1 +
tools/perf/util/parse-events.c | 2 ++
2 files changed, 3 insertions(+)
Index: linux-2.6-clean/tools/perf/design.txt
===================================================================
--- linux-2.6-clean.orig/tools/perf/design.txt 2010-08-06 22:15:03.434665132 +0800
+++ linux-2.6-clean/tools/perf/design.txt 2010-08-06 22:21:03.746180600 +0800
@@ -139,6 +139,7 @@
PERF_COUNT_SW_PAGE_FAULTS_MAJ = 6,
PERF_COUNT_SW_ALIGNMENT_FAULTS = 7,
PERF_COUNT_SW_EMULATION_FAULTS = 8,
+ PERF_COUNT_SW_RAPL_ENERGY = 9,
};
Counters of the type PERF_TYPE_TRACEPOINT are available when the ftrace event
Index: linux-2.6-clean/tools/perf/util/parse-events.c
===================================================================
--- linux-2.6-clean.orig/tools/perf/util/parse-events.c 2010-08-06 22:15:03.422664708 +0800
+++ linux-2.6-clean/tools/perf/util/parse-events.c 2010-08-07 00:06:27.643725050 +0800
@@ -51,6 +51,7 @@
{ CSW(CPU_MIGRATIONS), "cpu-migrations", "migrations" },
{ CSW(ALIGNMENT_FAULTS), "alignment-faults", "" },
{ CSW(EMULATION_FAULTS), "emulation-faults", "" },
+ { CSW(RAPL_ENERGY), "energy", "" },
};
#define __PERF_EVENT_FIELD(config, name) \
@@ -81,6 +82,7 @@
"major-faults",
"alignment-faults",
"emulation-faults",
+ "cpu-energy-in-Joules",
};
#define MAX_ALIASES 8
reply other threads:[~2010-08-18 7:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1282118375.5181.118.camel@rui \
--to=rui.zhang@intel.com \
--cc=acme@redhat.com \
--cc=dzickus@redhat.com \
--cc=fweisbec@gmail.com \
--cc=gorcunov@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.m.lin@intel.com \
--cc=mingo@elte.hu \
--cc=mjg59@srcf.ucam.org \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=robert.richter@amd.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;
as well as URLs for NNTP newsgroup(s).