Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 26 Feb 2020 22:01:39 -0000 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j74kM-00072g-0z for speck@linutronix.de; Wed, 26 Feb 2020 23:01:38 +0100 From: Thomas Gleixner Subject: Re: [PATCH v2 1/2] v2: more sampling fun 1 In-Reply-To: <20200226211310.GT160988@tassilo.jf.intel.com> References: <20200226110737.GB17448@zn.tnic> <20200226171103.GA114268@mtg-dev.jf.intel.com> <20200226211310.GT160988@tassilo.jf.intel.com> Date: Wed, 26 Feb 2020 23:01:36 +0100 Message-ID: <87pne1nh33.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: speck for Andi Kleen writes: >> > > I implemented this in the way I did to avoid modifying x86_cpu_id as >> > > that structure is an exported ABI and any change would impact user mode >> > > code using the structure. >> > >> > Exported ABI? Which usermode code uses this? The module loading tools? >> >> Yeah, Andi pointed it out to me on an internal review. I don't know what tool >> is using it. > > Yes it's modprobe to find which module to load. > > All of mod_devicetable.h is ABI That's simply not true. mod_devicetable.h is a kernel internal header which gets analyzed by the kernel internal tool modpost which uses this header to generate the ALIAS entries in the .modinfo section of the .ko elf file. The ALIAS entries are user space ABI but not the header file. If the header file changes then file2alias.c has to be updated as clearly stated in the comment at the top of mod_devicetable.h And if you look at the driver_data member of x86_cpu_id then you'll notice that file2alias does not care about it at all, neither would it care about a stepping entry or whatever. Thanks, tglx