From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33852C38A2D for ; Mon, 24 Oct 2022 21:30:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231438AbiJXVar (ORCPT ); Mon, 24 Oct 2022 17:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbiJXVa1 (ORCPT ); Mon, 24 Oct 2022 17:30:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D65E295B1C; Mon, 24 Oct 2022 12:37:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BAA4461575; Mon, 24 Oct 2022 19:36:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF505C433C1; Mon, 24 Oct 2022 19:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666640171; bh=fldEejBmWhb2dcNXpmcrmZPAcI08NnoyTAQGGcT+UNk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZjQkd+T/t3ZgB8kCMwcKd5h5QKQnhN3rF7FHtJiiRNpwHApD7Bw4+FUGk7noUPUby lnKEcOo1sE7gJ6GaHYjMhJ2j5rLMe4pFhrL5zPLyGw3j0K4tGV/8hElPd8m1v7bZBT 1rzdBFF+qLA980xACh8aD8HIU8FwAMf35XYVJi1cAYqpYQJV/lMol/fACcofds5sfk wD/pTD2l2ZSGK+NtmTpVVrGD6tnr4ggd4QUgtCIHQOIgGdOTE1fTeNvnCc8HXgvmaM FKXE0UDLbz6tT5RQ6pkEvlSXqKjUoLfwubX18OncucgtQKrAGdIFAZIjJpwjWZqk3s fdiwSGePzY9WA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E08EF404BE; Mon, 24 Oct 2022 16:36:07 -0300 (-03) Date: Mon, 24 Oct 2022 16:36:07 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Alexey Bayduraev , German Gomez , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v1 0/8] Update to C11, fix signal undefined behavior Message-ID: References: <20221024173523.602064-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Em Mon, Oct 24, 2022 at 10:59:03AM -0700, Ian Rogers escreveu: > On Mon, Oct 24, 2022 at 10:51 AM Arnaldo Carvalho de Melo > wrote: > > > > Em Mon, Oct 24, 2022 at 10:35:15AM -0700, Ian Rogers escreveu: > > > The use of C11 is mainstream in the kernel [1]. There was some > > > confusion on volatile and signal handlers in [2]. Switch to using > > > stdatomic.h (requires C11) and sig_atomic_t as per [3]. Thanks to Leo > > > Yan for the suggestions. > > > > > > [1] https://lore.kernel.org/lkml/CAHk-=whWbENRz-vLY6vpESDLj6kGUTKO3khGtVfipHqwewh2HQ@mail.gmail.com/ > > > [2] https://lore.kernel.org/lkml/20221024011024.462518-1-irogers@google.com/ > > > [3] https://wiki.sei.cmu.edu/confluence/display/c/SIG31-C.+Do+not+access+shared+objects+in+signal+handlers > > > > I think I'll apply this to perf/core, i.e. for 6.3, ok? > > Sounds good to me. 6.3 or 6.2? I suspect there is more cleanup like > this and to the iterators (from C11) that can be done. oops, 6.2, sure, 6.1 is the current one, merge window closed. :-) - Arnaldo