Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6667952rwd; Mon, 5 Jun 2023 23:37:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/AyHiLWHRRSjWWpalsP9VqlvZq1/2mmelj+sBA1M1dXe77eAFxgRsh1vqxPww9H3I7Qbt X-Received: by 2002:aca:917:0:b0:398:596d:69da with SMTP id 23-20020aca0917000000b00398596d69damr1160242oij.22.1686033460985; Mon, 05 Jun 2023 23:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686033460; cv=none; d=google.com; s=arc-20160816; b=CHyUjMU+dMfG5qDsFWXXGHO/IfDDx0GwOM3e16Y7NiCjTxyZiTXfL5t1YRI5SA7UFs BnSTBIc8cTblfBdW5tmNLC33GVvkPiUyFf8Iy8lnt1nnOi88bNkXhonXdLc7Mc7qInl8 +1wKCwUibliYT9QYKYOzWQ4puRpLdsJCPc8d/0mRZoNWe7B8KQMlTGBpH4ZlHkls1xNO 0x8jleqcnZ94mKcfIhgZI6tBPNgc3+iYZoDzKJOQppAB5bufFk2li/F8rI2zzo35JAiI O6rRIJA1JJPD20aDEqwfURTnH/mvp2ZEuofZnY2ZXb6Brgw8QOIuclL/NKl2O9LEfLbN B8Jw== 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=5Qt0TZdpZFts0TaM3xOskSanCMvu3uxtIMS0vk4fZs4=; b=cnD58qQ0ZtBaXwumChzbJMJRNEL6zVB7NxNXIJETOC6E8ug0IS2kx8L8eMhbO1XjsS vWR1+UAiqk7yr5jc1co5o3Jq8m4lDfh3Rgg3FZw/fFUyS6ZVA0ue+VfWnRdVvJAsfELV uQxmscTnQuhlGMv3faAVbsfaCix3+pv69k+33xXORLyOWXoDA4AXu7poXOfqT+NeBoJD lTT3nJDeJepEiTpjejSkvsGTOexhCQoML32fu6NWgbZIAG8N3QH810vAU+6NBRP0q9OP ETXtBUql0eoY+bJ3GAMFtpb1KV6AQhH8XyWjXFQU+WlasLbQF0kXrfLs2unqFh93wOEc +NqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pw1-20020a17090b278100b00257a8dafd4esi8834946pjb.60.2023.06.05.23.37.29; Mon, 05 Jun 2023 23:37:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234348AbjFFGVE (ORCPT + 99 others); Tue, 6 Jun 2023 02:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234114AbjFFGUv (ORCPT ); Tue, 6 Jun 2023 02:20:51 -0400 Received: from mail-il1-f194.google.com (mail-il1-f194.google.com [209.85.166.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 464CCE5C; Mon, 5 Jun 2023 23:20:34 -0700 (PDT) Received: by mail-il1-f194.google.com with SMTP id e9e14a558f8ab-33b1da9a8acso27489975ab.3; Mon, 05 Jun 2023 23:20:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686032433; x=1688624433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5Qt0TZdpZFts0TaM3xOskSanCMvu3uxtIMS0vk4fZs4=; b=Vqkqx+sPUmhcCTxuMJTEKjgVZ63gd95xTE70vE4vGJyLJjl6u2u6+1IoNEuw0YyQlb CjBW78mZ4YADhLChdeS87s4wNWvJgye1j4uIOFUO+lH4es0EIIN0Bw5IiYPxGbYPnLx5 5i6+v1ru81ljppViNzJ9YRizaX/wxRwcA+pM1Qnit1KR7soQ06vRPoA28MfkpoBCJ+ki y7LexDrEQexaHsAAgtuu39GAfAF6z1BanuAejKOZKfHhfpooDTJVIQXLgFai2NZlQXZc BCcoq5d3U2C4BqeiXWLfOM+kqB6NaCwcPrLflr613jTo2uvWh3KPJOkcbd/9Z5Id317W b02A== X-Gm-Message-State: AC+VfDwFoKallIgeG+xNTpAV/eAxwUxyMYM8Gl+1FDe9nzMD23mrrufV 9xEVLi7PoEVsanmjzcdzog== X-Received: by 2002:a92:c505:0:b0:338:f770:ccc3 with SMTP id r5-20020a92c505000000b00338f770ccc3mr1743804ilg.21.1686032433406; Mon, 05 Jun 2023 23:20:33 -0700 (PDT) Received: from localhost.localdomain ([116.128.244.169]) by smtp.gmail.com with ESMTPSA id w7-20020a634907000000b0052c3f0ae381sm4960841pga.78.2023.06.05.23.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 23:20:32 -0700 (PDT) From: sunliming To: mhiramat@kernel.org, beaub@linux.microsoft.com, rostedt@goodmis.org, shuah@kernel.org Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kelulanainsley@gmail.com, sunliming Subject: [PATCH v3 0/4] tracing/user_events: Add empty arguments events Date: Tue, 6 Jun 2023 14:20:23 +0800 Message-Id: <20230606062027.1008398-1-sunliming@kylinos.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org This series patches fix the incorrect trace record for empty arguments events and add correspondent selftests. V3: Improve modification descriptions to maintain consistent formatting v2: Change "i->count" to "i->count !=0 " to prevent compiler optimization Add correspondent selftests sunliming (4): tracing/user_events: Fix the incorrect trace record for empty arguments events selftests/user_events: Add ftrace self-test for empty arguments events selftests/user_events: Clear the events after perf self-test selftests/user_events: Add perf self-test for empty arguments events kernel/trace/trace_events_user.c | 4 +- .../selftests/user_events/ftrace_test.c | 33 ++++++++ .../testing/selftests/user_events/perf_test.c | 82 +++++++++++++++++++ 3 files changed, 117 insertions(+), 2 deletions(-) -- 2.25.1