From patchwork Mon Nov 27 15:12:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Pavlu X-Patchwork-Id: 17149 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3200453vqx; Mon, 27 Nov 2023 07:13:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGX9bxhDUFddcqKP1wuHeUjsID3b8a7uJ6sqVtnKksA8WxrEeje+5mP0FuHXsA5c/eqr3+U X-Received: by 2002:a17:90b:3b43:b0:285:a0eb:66c8 with SMTP id ot3-20020a17090b3b4300b00285a0eb66c8mr7956474pjb.1.1701097995646; Mon, 27 Nov 2023 07:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701097995; cv=none; d=google.com; s=arc-20160816; b=w1/rZf7m4/uoofogWYolWpYHP35bWPFMQsLSKVjTQEYUjXupuYCM45jHqoRG9RnPtn S3WaT23YGIXgjyOSUOWn2rZ4OQxOmsLAkjtamTl/DAoLoYq/KTSSLxgeA4ipKu4kq2Gp 7qG5bOv58lcDHLJgQlg7cQIys2/ZrCvf6FfTtWM6JCxk0e6Kb1D02apNGg2Cyql6x7RA KyO1letrISYOMZxA9C5I1YHn8OlbHt6mscPoYAamMM9iYzJxzOUGgzaDG4yOF910A6kS FCPIZNb1cSrDLfvBaQL0vqSbHZWZ5LeftwU216YFmBgY08g70mGkrmzdRuEt+e2BzPTj NZFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/UOuiYKTHFiRyehQQsD7bHki+zzhU5PD65TbcU14AyA=; fh=j8Hw7lilfJM9L0BwDk5YbNksoIL60jpocmP7dOg/RPw=; b=iW1xRCl6m7g9let012YCB2/T0rzOpPis+1bn673vVyuunX6TiunbGhTaHl2lGT3+yy qyeHGbRaxFZgzB5tXhwU53+x0Hj2SM4jIfGgArT9qEZ5gWuUNGUrq+hWmPxP9Ktn2gge Xac05ZrERdyOjTpG/F6+gwilRGMDTGbuExwhfahdmMlCr93/Mykp1haKYzOG0RcmClrh 2ypIiU7fIroMLRdv2oWl69/pmvilMzbWAVxPfFZK2PKUAEvuvYi0I4PabdovysNk3Kc7 jMGyv+l9SG7GuTTa250DbnXaou+9+NWtPySSM2sIhQrCyTzlbmc4W35eBuvQWS+nzqx1 7i1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l19-20020a17090ac59300b00285807d0f79si8559445pjt.56.2023.11.27.07.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:13:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 806F7805D6C6; Mon, 27 Nov 2023 07:13:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233833AbjK0PND (ORCPT + 99 others); Mon, 27 Nov 2023 10:13:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233584AbjK0PNB (ORCPT ); Mon, 27 Nov 2023 10:13:01 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72A290; Mon, 27 Nov 2023 07:13:07 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6999B21AFA; Mon, 27 Nov 2023 15:13:06 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 49B351367B; Mon, 27 Nov 2023 15:13:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id OIqREQKyZGXEPgAAD6G6ig (envelope-from ); Mon, 27 Nov 2023 15:13:06 +0000 From: Petr Pavlu To: rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com Cc: zhengyejian1@huawei.com, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Pavlu Subject: [PATCH 0/2] tracing: Simplify and fix "buffered event" synchronization Date: Mon, 27 Nov 2023 16:12:46 +0100 Message-Id: <20231127151248.7232-1-petr.pavlu@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spamd-Bar: +++++++++++++++ Authentication-Results: smtp-out1.suse.de; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.com (policy=quarantine); spf=fail (smtp-out1.suse.de: domain of petr.pavlu@suse.com does not designate 2a07:de40:b281:104:10:150:64:97 as permitted sender) smtp.mailfrom=petr.pavlu@suse.com X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [15.00 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_FAIL(1.00)[-all]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_MISSING_CHARSET(2.50)[]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; BROKEN_CONTENT_TYPE(1.50)[]; DMARC_POLICY_QUARANTINE(1.50)[suse.com : No valid SPF, No valid DKIM,quarantine]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[7]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: 15.00 X-Rspamd-Queue-Id: 6999B21AFA X-Spam: Yes X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 07:13:12 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783730531906992376 X-GMAIL-MSGID: 1783730531906992376 Rework the maintenance synchronization for buffered events to simplify it and to address several found problems. Petr Pavlu (2): tracing: Simplify and fix "buffered event" synchronization tracing: Disable events in reverse order of their enable operation kernel/trace/trace.c | 66 +++++++++++++++---------------------- kernel/trace/trace_events.c | 17 ++++++---- 2 files changed, 37 insertions(+), 46 deletions(-) base-commit: 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab