* [PATCH v2] drivers/perf: arm_pmu: make info messages more verbose
@ 2016-02-04 9:58 Dirk Behme
2016-02-04 11:33 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Dirk Behme @ 2016-02-04 9:58 UTC (permalink / raw)
To: linux-arm-kernel
On a big.LITTLE system e.g. with Cortex A57 and A53 in case not all cores
are online at PMU probe time we might get
hw perfevents: failed to probe PMU!
hw perfevents: failed to register PMU devices!
making it unclear which cores failed, here.
Add the device tree full name which failed and the error value resulting
in a more verbose and helpful message like
hw perfevents: /soc/pmu_a53: failed to probe PMU! Error -6
hw perfevents: /soc/pmu_a53: failed to register PMU devices! Error -6
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
---
Changes in v2: Use the full node name from DT instead of pmu->name, as if
we fail to find anything in the match table, that'll be NULL. Additionally,
add the error value to get an idea why it failed.
drivers/perf/arm_pmu.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c
index 166637f..6fb63a3 100644
--- a/drivers/perf/arm_pmu.c
+++ b/drivers/perf/arm_pmu.c
@@ -898,7 +898,8 @@ int arm_pmu_device_probe(struct platform_device *pdev,
}
if (ret) {
- pr_info("failed to probe PMU!\n");
+ pr_info("%s: failed to probe PMU! Error %i\n",
+ node->full_name, ret);
goto out_free;
}
@@ -918,7 +919,8 @@ int arm_pmu_device_probe(struct platform_device *pdev,
out_destroy:
cpu_pmu_destroy(pmu);
out_free:
- pr_info("failed to register PMU devices!\n");
+ pr_info("%s: failed to register PMU devices! Error %i\n",
+ node->full_name, ret);
kfree(pmu);
return ret;
}
--
2.5.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] drivers/perf: arm_pmu: make info messages more verbose
2016-02-04 9:58 [PATCH v2] drivers/perf: arm_pmu: make info messages more verbose Dirk Behme
@ 2016-02-04 11:33 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2016-02-04 11:33 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 04, 2016 at 10:58:48AM +0100, Dirk Behme wrote:
> On a big.LITTLE system e.g. with Cortex A57 and A53 in case not all cores
> are online at PMU probe time we might get
>
> hw perfevents: failed to probe PMU!
> hw perfevents: failed to register PMU devices!
>
> making it unclear which cores failed, here.
>
> Add the device tree full name which failed and the error value resulting
> in a more verbose and helpful message like
>
> hw perfevents: /soc/pmu_a53: failed to probe PMU! Error -6
> hw perfevents: /soc/pmu_a53: failed to register PMU devices! Error -6
>
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
> ---
> Changes in v2: Use the full node name from DT instead of pmu->name, as if
> we fail to find anything in the match table, that'll be NULL. Additionally,
> add the error value to get an idea why it failed.
>
> drivers/perf/arm_pmu.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
This looks fine to me, but please can you rebase on top of my perf/updates
branch [1] so that I can queue it?
Cheers,
Will
[1] https://git.kernel.org/cgit/linux/kernel/git/will/linux.git/log/?h=perf/updates
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-04 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 9:58 [PATCH v2] drivers/perf: arm_pmu: make info messages more verbose Dirk Behme
2016-02-04 11:33 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).