RE: [PATCH 1/1] iommuv2/amd: Enable Performance Counters On Family15h Models 10h-1Fh
From: Kinney, Steven
Date: Sun Dec 02 2012 - 16:55:58 EST
I didn't want to expose the internals of the IOMMU, so I decided to export the function(s) so that the perf IOMMUv2 PMU can make call(s) into the IOMMU core to request PC resources. The perf_event_amd_iommuv2.h defines the prototype for the added PC functionality. I have the perf IOMMUv2 PMU working and counting IOMMUv2 PC events using this interface, but if you have a suggestion to make this implementation more robust, I will accommodate the suggestion. Also, if it would be helpful, I can submit the perf IOMMUv2 PMU patches.
BTW, I am resubmitting this patch since I caught a function signature error; was changing the code based on Boris's suggestion(s) and forgot to add the variable type (bool) concerning the 'is_write' parameter.
Hope all is well with you and the team; we miss you guys!
From: Joerg Roedel [mailto:joro@xxxxxxxxxx]
Sent: Sunday, December 02, 2012 7:30 AM
To: Kinney, Steven
Cc: Joerg Roedel; Kukjin Kim; Stephen Warren; Jiri Kosina; linux-kernel@xxxxxxxxxxxxxxx; iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH 1/1] iommuv2/amd: Enable Performance Counters On Family 15h Models 10h-1Fh
On Mon, Nov 26, 2012 at 04:00:25PM -0600, Steven Kinney wrote:
> From: "Steven L. Kinney" <steven.kinney@xxxxxxx>
> Add Kernel configuration selection for AMD IOMMUv2 performance
How can the counters be used?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/