Message ID | 20230629235049.581-1-beaub@linux.microsoft.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10003960vqr; Thu, 29 Jun 2023 17:25:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcWcPNlE/nKMOQzYedBP87yQJp4A2q+/oKfVQDz+qAtWf9p2Sfln5plTs0yMJNzkZqGHzg X-Received: by 2002:a05:6870:f60f:b0:1b0:4987:333 with SMTP id ek15-20020a056870f60f00b001b049870333mr1605093oab.2.1688084712000; Thu, 29 Jun 2023 17:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688084711; cv=none; d=google.com; s=arc-20160816; b=zoigA7ByKsjwkBQ4UEcJCvpzgrsTHG/fZ/Nmnujd2nLWp88WpVZLxf938Q4hAXn34J 1pGGZUUOP0TPkuF6kZvtzYubm/XJUeERajrm4lFkXuSuSj+oDt5+kmGlc0xV7Pyu3rui MBPEfE3Dfun4RFTBtUCNsU6/O4cy5q/qQD188YKRett4opgOwUgsl83uDN5pRwbdelrH nsO4wZbBYpu3rd/VhoPH6gq+RuaDg1qrxE7KygQLclWLzyKCHbBrGprfuLwTABRy4MQg gM9FYXlDFmELndvJhV9n8OcWBY3bxyDleKfJq+j0saSWGVITaFHuYutlBMpkoK8PZ+kf b8dA== 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:dkim-signature:dkim-filter; bh=lgUdu2qp156h5P5sIiuRE2nkVehC4a1jKFyR45EG0Ec=; fh=p4jcC6qPA5R6qIqhMXvm4Q5Zg5H5ZjhkM/jXdOBVsQs=; b=cWzxwsa06u11Mqx+RsMszwSoFL2YeOwwFIxfJYpQK4Yv3Wu5ptOovcg4W4ofC19z+R T2PHAf30PWhyK3yndUBGvMu5OIjUyf8yvmzWcJ6t2+1Wl1SZQE5vJyqbjqbAOWVNGGE1 9zL/keieG/zuDVpIEUqlDbtAyIXLKvALp+7moVx643DpDmRwoLOxJQsrfRp5BGITsDwU 7gc++HRJRiLp6BsZ6R61yk1hMmcRvYydYo/iksk8IA54YUAPlL2zhny3frWgnzTL+HFD TFsv93e8Iwr1gIKbJ2NmiqCjU5OxwAXtzjUSJxp1EgBoHoBRKn07FTxvPflnVvDGTUAw /h4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CV8h5hcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a17090a01d700b00244930ffe45si11602036pjd.0.2023.06.29.17.24.59; Thu, 29 Jun 2023 17:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=CV8h5hcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230353AbjF2Xu6 (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Thu, 29 Jun 2023 19:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbjF2Xu4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Jun 2023 19:50:56 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96AA930DF; Thu, 29 Jun 2023 16:50:55 -0700 (PDT) Received: from CPC-beaub-VBQ1L.localdomain (unknown [4.155.48.123]) by linux.microsoft.com (Postfix) with ESMTPSA id 9185C208396A; Thu, 29 Jun 2023 16:50:54 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9185C208396A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1688082654; bh=lgUdu2qp156h5P5sIiuRE2nkVehC4a1jKFyR45EG0Ec=; h=From:To:Cc:Subject:Date:From; b=CV8h5hcJQpMcjs7dt45hr2utnsklSL8xlDt3bCxw5+dvGSlnU60MsS8jUO3Wbgo/o ILIU7MKrg8YBttpVFD+2m5I1A3PkqTBIryGBPDZZgikzzoxZ8vUvbEpAaWXhxUKDtw 9t4qpNk8P0W6LGKkOZ/5LfTj3M241DR5XQyq6Zcc= From: Beau Belgrave <beaub@linux.microsoft.com> To: rostedt@goodmis.org, mhiramat@kernel.org Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 0/2] tracing/user_events: Fix struct arg size match check Date: Thu, 29 Jun 2023 23:50:47 +0000 Message-Id: <20230629235049.581-1-beaub@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770085115241586654?= X-GMAIL-MSGID: =?utf-8?q?1770085115241586654?= |
Series |
tracing/user_events: Fix struct arg size match check
|
|
Message
Beau Belgrave
June 29, 2023, 11:50 p.m. UTC
The edge case of struct fields having an extra size argument got missed when checking if events have the same name and arguments. This lead to events not being able to register if a matching event name was already created with a struct argument. This series simply fixes this and adds a self test to ensure we do not miss it again. Beau Belgrave (2): tracing/user_events: Fix struct arg size match check selftests/user_events: Test struct size match cases kernel/trace/trace_events_user.c | 3 +++ tools/testing/selftests/user_events/dyn_test.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) base-commit: 6995e2de6891c724bfeb2db33d7b87775f913ad1