From nobody@FreeBSD.org  Fri Dec 20 20:38:03 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 3761DD0C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Dec 2013 20:38:03 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 23AA0183B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Dec 2013 20:38:03 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBKKc2l7009509
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Dec 2013 20:38:02 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBKKc2Vm009507;
	Fri, 20 Dec 2013 20:38:02 GMT
	(envelope-from nobody)
Message-Id: <201312202038.rBKKc2Vm009507@oldred.freebsd.org>
Date: Fri, 20 Dec 2013 20:38:02 GMT
From: John-Mark Gurney <jmg@funkthat.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pmcstat's -F kcachegrind output needs work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         185047
>Category:       bin
>Synopsis:       pmcstat(8): pmcstat's -F kcachegrind output needs work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jmg
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 20:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon Dec 23 04:35:17 UTC 2013
>Originator:     John-Mark Gurney
>Release:        11.0-CURRENT
>Organization:
>Environment:
>Description:
pmcstat when outputing to kcachegrind does not handle multicore very well.  It will report n cores of each stat that you gathers w/o a way to add them up.  It will also hide which CPU each stat was collected from, as it uses a global index between all stats.

pmcstat needs to output CPUID, and add lines like:
event: TOTAL = FR_RETIRED_X86_INSTRUCTIONS_0 + FR_RETIRED_X86_INSTRUCTIONS_1 + FR_RETIRED_X86_INSTRUCTIONS_2 + FR_RETIRED_X86_INSTRUCTIONS_3

to provide a total of the even over all cpus.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jmg 
Responsible-Changed-By: jmg 
Responsible-Changed-When: Fri Dec 20 20:41:32 UTC 2013 
Responsible-Changed-Why:  
I'm not actively working on this, but it is also a simple change.. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185047 
>Unformatted:
