lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 18 Aug 2010 15:59:35 +0800
From:	Zhang Rui <rui.zhang@...el.com>
To:	peterz@...radead.org
Cc:	LKML <linux-kernel@...r.kernel.org>, mingo@...e.hu,
	robert.richter@....com, acme@...hat.com, paulus@...ba.org,
	dzickus@...hat.com, gorcunov@...il.com, fweisbec@...il.com,
	Lin Ming <ming.m.lin@...el.com>,
	"Brown, Len" <lenb@...nel.org>,
	Matthew Garrett <mjg59@...f.ucam.org>,
	"Zhang, Rui" <rui.zhang@...el.com>
Subject: [RFC PATCH 3/3] perf: support PERF_COUNT_SW_RAPL_ENERGY in perf
 tool


Support PERF_COUNT_SW_RAPL_ENERGY in perf tool.

Signed-off-by: Zhang Rui <rui.zhang@...el.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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ