From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756024AbdKCLeA (ORCPT ); Fri, 3 Nov 2017 07:34:00 -0400 Received: from foss.arm.com ([217.140.101.70]:41036 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003AbdKCLd7 (ORCPT ); Fri, 3 Nov 2017 07:33:59 -0400 Date: Fri, 3 Nov 2017 11:33:56 +0000 From: Mark Rutland To: ray.huang@amd.com Cc: linux-kernel@vger.kernel.org Subject: perf/x86/amd/power missing pmu::module initialisation Message-ID: <20171103113355.trx34ebuyhw7bej4@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, As a heads-up, I believe that arch/x86/events/amd/power.c is currently missing initialisation of pmu::module, which could result in problems when the module is unloaded. We've just spotted a similar problem in a couple of ARM PMUs, and AFAICT the AMD power PMU is the only other PMU affected. Other modular PMUs all initialise this to THIS_MODULE prior to calling perf_pmu_register(). Thanks, Mark.