Re: [Intel-gfx] [RFC 07/14] drm/i915/pmu: Add fake regs

2017-07-26 Thread Tvrtko Ursulin
On 25/07/2017 02:20, Ben Widawsky wrote: On 17-07-18 15:36:11, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Without this I can get a null ptr deref when trying to access our events with perf. Signed-off-by: Tvrtko Ursulin This definitely seems unsafe, but should be squashed in somewhere ea

Re: [Intel-gfx] [RFC 07/14] drm/i915/pmu: Add fake regs

2017-07-24 Thread Ben Widawsky
On 17-07-18 15:36:11, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Without this I can get a null ptr deref when trying to access our events with perf. Signed-off-by: Tvrtko Ursulin This definitely seems unsafe, but should be squashed in somewhere earlier... --- drivers/gpu/drm/i915/i915_pmu

[Intel-gfx] [RFC 07/14] drm/i915/pmu: Add fake regs

2017-07-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Without this I can get a null ptr deref when trying to access our events with perf. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_pmu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i