Re: [PATCH] perf: Fix intel shared extra msr allocation
From: Peter Zijlstra
Date: Tue Jun 05 2012 - 06:14:37 EST
On Fri, 2012-06-01 at 22:11 +0800, Yan, Zheng wrote:
>
> The real problem is from __intel_shared_reg_put_constraints(). it set
> reg->alloc to 0
ok
> and decreases fake_cpuc->shared_regs->regs[reg->idx]'s
> reference count.
So? That's fake state, who cares what its left in?
> Later when deleting the event, put_constraints() will find
> reg->alloc is 0 and it won't decrease the shared msr's reference count.
OK, so the only problem is us setting reg->alloc to 0?
--
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/