From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75684371D02 for ; Thu, 25 Jun 2026 20:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782420955; cv=none; b=p+BIGXYZpXXdyH6LJ+ooZQe24p+ihd+MPkNxx8VLSSQKQSnEqodTkvwprGFJJ7vGbphCg5G+GEutnjNaXpuWAmVkkj0LVmGTDrxKvgPYFvpJ1Rg9/1nq4yAjD0wVoEi9TdjGtNbSTOdPDTnzFdkKGi9V6CpVCdAmnY/34t0iofM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782420955; c=relaxed/simple; bh=a2TxLue6xJvphf7hGCZZc5KaqVHFZgGjZ3PfBJKP+nY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=b24Pkh/INLTpvOwzn1sLqcyDGiL5lQHeb+6G9NQcy/pAVoKAeVuWONg56N9iuJz9zbDVwmBL7L2dfCCENjV7LzMH1GlZqCh0sscGMwIhdfHFD+ijd3SV6q6S4eAdHyWdC7lY2VFKIveat7O4H9ggmo0iWh0tOsE4+JydhB5Sux8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VCSITqNp; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VCSITqNp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDA201F000E9; Thu, 25 Jun 2026 20:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782420954; bh=YuU9PKwEaKR+sVoGD37ro0XGTPj5JwDO8PWPZke0rAo=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=VCSITqNp+cDBOvprxWsKORgV+cMRPBV7MevpJcL4pJhKDtY7fgctcehOKyX9a7I3b kvmGdDmmuyFI/h+bVJ3g1EwWFP6t3ApeIAHzNGMLRRgqzMNiXi9wr+oBV+z/8+WVjJ YZIwofcpaMwruhioZrv0wVjOp1mACr13fERjjXv/Y+bo8igRMmRflINGNToQpi75wr IdeBeSyYwn/WDbjV364KP88p36cFMPwzFKnHVwTe7cmuDaiY5kWK3cOFoGpK8I4ss2 MNPBXND5fx6wK0riJb8D71PyCPTd25KnS3EBWgSQhzJazZvRH3ai2JYvKdg3lXNfJ2 JLIz86v/nUcAw== Message-ID: <768b3253-599c-4d46-96e5-2bc8d72ffb4d@kernel.org> Date: Thu, 25 Jun 2026 22:55:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [GIT PULL] tracing: Updates for 7.2 To: Steven Rostedt , Peter Zijlstra Cc: Linus Torvalds , Yury Norov , LKML , Masami Hiramatsu , Mathieu Desnoyers , Ao Sun , David Carlier , Karl Mehltretter , Martin Kaiser , Pengpeng Hou , Qian-Yu Lin , Rik van Riel , Rosen Penev , Shuvam Pandey , Vineeth Pillai , Yash Suthar , Yu Peng , Sebastian Andrzej Siewior , Thomas Gleixner References: <20260616180122.57a3b426@fedora> <20260619081513.3e4a1fb0@fedora> <20260620181957.115d662c@fedora> <20260620194233.4e1e5d10@fedora> <20260622084017.GY49951@noisy.programming.kicks-ass.net> <20260622045547.74e09a59@fedora> <20260624052102.564f9946@fedora> From: Vincent Mailhol Content-Language: en-US Autocrypt: addr=mailhol@kernel.org; keydata= xjMEZluomRYJKwYBBAHaRw8BAQdAf+/PnQvy9LCWNSJLbhc+AOUsR2cNVonvxhDk/KcW7FvN JFZpbmNlbnQgTWFpbGhvbCA8bWFpbGhvbEBrZXJuZWwub3JnPsKZBBMWCgBBFiEE7Y9wBXTm fyDldOjiq1/riG27mcIFAmdfB/kCGwMFCQp/CJcFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcC F4AACgkQq1/riG27mcKBHgEAygbvORJOfMHGlq5lQhZkDnaUXbpZhxirxkAHwTypHr4A/joI 2wLjgTCm5I2Z3zB8hqJu+OeFPXZFWGTuk0e2wT4JzjgEZx4y8xIKKwYBBAGXVQEFAQEHQJrb YZzu0JG5w8gxE6EtQe6LmxKMqP6EyR33sA+BR9pLAwEIB8J+BBgWCgAmFiEE7Y9wBXTmfyDl dOjiq1/riG27mcIFAmceMvMCGwwFCQPCZwAACgkQq1/riG27mcJU7QEA+LmpFhfQ1aij/L8V zsZwr/S44HCzcz5+jkxnVVQ5LZ4BANOCpYEY+CYrld5XZvM8h2EntNnzxHHuhjfDOQ3MAkEK In-Reply-To: <20260624052102.564f9946@fedora> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/06/2026 at 11:21, Steven Rostedt wrote: > On Mon, 22 Jun 2026 04:55:47 -0400 > Steven Rostedt wrote: > >> It really isn't about me. I personally don't care if I have to add a >> patch to include it in kernel.h in my environment. It's just something >> that all the other kernel developers will need to now remember to add >> (and then remove) the include. > > For me, I just updated my ktest config and added: > > CFLAGS_KERNEL='-include $(srctree)/include/linux/trace_printk.h' CFLAGS_MODULE='-include $(srctree)/include/linux/trace_printk.h' > > to the kernel build and it works like it used to. But that doesn't help > others. I may update the trace_printk documentation to mention the > above to keep the old behavior. Maybe what could make sense is to add a CONFIG_CUSTOM_CFLAGS entry to Kconfig. This can be versatile enough to cover many uses cases: - Add your custom linux/trace_printk.h include as you described above. - Add optimizations (other than -march=native which already has its own Kbuild entry). Can be useful for optimized cross builds. - Add your non common compiler checks (for example -fanalyzer). - (list not exhaustive) That would be one entry to handle all the weird/unique use cases. I personally do not rely often enough on trace_printk.h to wish for a dedicated Kconfig entry just for that, but a CONFIG_CUSTOM_CFLAGS would cover some of my use cases while also solving your problem. Yes, all of these can be passed on the command line, but that would be a quality of live improvement to have the config remember these for us. Yours sincerely, Vincent Mailhol