]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/pmu: Do not use colons or dashes in PMU names
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 10 Jan 2020 11:32:53 +0000 (11:32 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 14 Jan 2020 06:56:58 +0000 (08:56 +0200)
commit88550e1c345c6d3f70292fa60d481eb320e11953
treebe7ef132b798c54c9f7d04a1e5e966fbd51e7459
parentdce54e861ec74d05cf0b737322700691e81be91b
drm/i915/pmu: Do not use colons or dashes in PMU names

We use PCI device path in the registered PMU name in order to distinguish
between multiple GPUs. But since tools/perf reserves a special meaning to
dash and colon characters we need to transliterate them to something else.
We choose an underscore.

v2:
 * Use strreplace. (Chris)
 * Dashes are not good either. (Chris)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reported-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Fixes: 05488673a4d4 ("drm/i915/pmu: Support multiple GPUs")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200110113253.12535-1-tvrtko.ursulin@linux.intel.com
(cherry picked from commit aebf3b521b34ca49f6e81c667f92364334ca27cf)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_pmu.c