From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Renninger Subject: Re: [PATCH 8/9] perf timechart: Map power:cpu_idle events to the corresponding cpuidle state Date: Fri, 7 Jan 2011 11:52:11 +0100 Message-ID: <201101071152.11407.trenn@suse.de> References: <1294396190-23031-1-git-send-email-trenn@suse.de> <1294396190-23031-9-git-send-email-trenn@suse.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1294396190-23031-9-git-send-email-trenn@suse.de> Sender: linux-kernel-owner@vger.kernel.org To: linux-perf-users@vger.kernel.org Cc: mingo@elte.hu, arjan@linux.intel.com, lenb@kernel.org, j-pihet@ti.com, linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Frederic Weisbecker List-Id: linux-omap@vger.kernel.org Argh, forgot guilt refresh on this one. The changelog could be a bit more detailed by adding: On Friday 07 January 2011 11:29:49 Thomas Renninger wrote: > Before, power:cpu_idle events were very specific X86 Intel mwait events. > This got fixed with previous patches and cpu_idle events are now thrown by > all cpuidle drivers and can be mapped to the corresponding cpuidle state > in /sys. > > This patch reads out the corresponding cpuidle name of a cpu_idle event > and uses it in the title line of the chart (c-states Cx in x86, omap2 > - DDR self refresh states for various arm archs). > > It also reads out the corresponding abbr(eviation) and uses the string > to draw the cpu idle occurences. This needs a short (3 letter) string > to keep the overview in the chart. All features/fixes this patch includes: - Read up cpuidle events from sysfs if available and thus make them architecture independent - Use (free) green color to display idle events in the chart, red is also used by "Blocked IO" event(s) - Fix wrong class="rect.cX" to class="cX" idle box svg drawing definitions. This fixes up black idle drawings for eog (eye of gnome) and firefox (inkscape somehow could handle the broken case). Thomas