[PATCH v9 3/4] perf: xgene: Add APM X-Gene SoC Performance Monitoring Unit driver
From: Tai Tri Nguyen <hidden>
Date: 2016-07-14 18:05:52
Also in:
linux-devicetree, lkml
From: Tai Tri Nguyen <hidden>
Date: 2016-07-14 18:05:52
Also in:
linux-devicetree, lkml
Hi Joe, On Thu, Jul 14, 2016 at 10:54 AM, Tai Tri Nguyen [off-list ref] wrote:
Hi Joe, On Thu, Jul 14, 2016 at 10:47 AM, Joe Perches [off-list ref] wrote:quoted
On Thu, 2016-07-14 at 10:27 -0700, Tai Nguyen wrote:quoted
This patch adds a driver for the SoC-wide (AKA uncore) PMU hardware found in APM X-Gene SoCs.trivia:quoted
diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c[]quoted
+struct xgene_pmu_dev_ctx { + char *name; + struct list_head next; + struct xgene_pmu_dev *pmu_dev; + struct hw_pmu_info inf; +};Probably better to use something like char name[20]; as the kasprintf can fail and this doesn't seem to be freed anywhere.Okay. I'll fix it shortly.
I take it back. I refer many other drivers using kasprintf and they do the same way I do. Can you please check it again? Thanks, -- Tai