Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1499427rwb; Fri, 13 Jan 2023 13:12:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLGCdptd0uk/YOIYyhjj4kBeZANuNwuORvkxocIsDe4xnGH4a1ThwqJ1uyHAEQZOb3lsW1 X-Received: by 2002:a62:2746:0:b0:58b:af27:dcda with SMTP id n67-20020a622746000000b0058baf27dcdamr5480008pfn.14.1673644347720; Fri, 13 Jan 2023 13:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673644347; cv=none; d=google.com; s=arc-20160816; b=CzRXiK/SQJT9MnM4upDvrw2jvATiDqLrwu3GFQ/oG6CbOmqBY1PWoLEEOv48v55VQ3 js0Wcac8HS1eMyrm9c4WaJdCG6JGYNg6+H/SwXk4Lyu+DaaAhzrhO5jqEEkchnU0uDZr Q0AWi3NHur+coJZs8ZfBJ94wWtGI7QgtmChuJrGACh7snAsE8Z+nSFGNFN3qG6drebAF 2UMSJQXl/APLFlBPjHTjZEXRlcYipzdh/XYc4z4hxIB9xoJCiOcBxQNwUVrdrOgB0EWc e5gRM8fkUvEqcpJdzhuYjU6FQ1WjMwzlEIEPQZyvbWXbGf7pxdoAhqBUt9QbtIoBtFA2 UCTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gv0EsBoHKACSjHkf6QHejJLvUbCANsEdYlk8XqMpHBo=; b=MSa6K8UGEGaAUHoDXSIf8ESl2we7QZm4wuGqFsR5vM1e1Qk9wdSL8z9lEa3oQ5asE+ oa8pWmmY8q5mqoIPHDSMc8PZGzfhwIZr06y5DZKVWsy6vHs/8kexyEIhAZ8rvqfoaihz ieXmt+u2Y9d7YoZFS7P1pIJpJnzSlXpm8QQ9TpggBRVJkD8OikQbWAIt/FUxUmNIbglH W3tbdrpzdIPX3BXg7qk0UO+2LfHqC5e5kigZtZTfodnbDC+mQ/LAoZLGOt1y6fhYv3R2 ATkRHXeXkXBPqXURVoxSeQuBqjSfX9ZX/hAGTTKElqidh0Dz8eg0Yi1f4Foskm4vAwLO 1iDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=abz82Fue; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a62a503000000b0058bc2e77660si1048104pfm.37.2023.01.13.13.12.21; Fri, 13 Jan 2023 13:12:27 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=abz82Fue; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbjAMVIB (ORCPT + 52 others); Fri, 13 Jan 2023 16:08:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbjAMVHv (ORCPT ); Fri, 13 Jan 2023 16:07:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B36869F6 for ; Fri, 13 Jan 2023 13:07:48 -0800 (PST) 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 591E36233E for ; Fri, 13 Jan 2023 21:07:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2DB9C433F1 for ; Fri, 13 Jan 2023 21:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673644067; bh=KnI9dpUVEfgfnTEf2BaoXBPxsyAbpN0J7UCpRtROHaY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=abz82Fue0Q3bmKKjWkIaZiLSeVzFIdI+ODUYtfY2x4R/NMfR7PsSpZ4Su+GquJ4kq h1eEgS3wuRjRWLfIVyX3s3b1VNEJdkWaBblPxTDl0GS1Iq9wcS2VaQd3waYCsSyozT kjS02DDmnX+akYZEIKFd8ILV/hp7eeMVuRNVr+ASRrnNYuoc3VQqXyly1vE1hf7rAC +absUwhRvWguHg5VPzyVLIaZlp6xXN8nUkp38VgagLvB5vAB1JVk6O0HmVIyMbtqkr 4nXQUKLvTwE3ohY58y/Dl79kVawf2bN9rTf+GNV6s57Kry7IXlT/LqkVuQg15Lt2ik mB9uyLFRmOPSw== Received: by mail-lf1-f53.google.com with SMTP id y25so34777747lfa.9 for ; Fri, 13 Jan 2023 13:07:47 -0800 (PST) X-Gm-Message-State: AFqh2kq2H3LMPk8oWs6hpIHEUXNGvt2asG5uuZzWugaUfl7/1tYXf4lI NfFFqzLyKUSUHsV8Wy/qYq/BZlOW636k4dNiMaM= X-Received: by 2002:a05:6512:a95:b0:4d1:3e32:5436 with SMTP id m21-20020a0565120a9500b004d13e325436mr325765lfu.215.1673644065860; Fri, 13 Jan 2023 13:07:45 -0800 (PST) MIME-Version: 1.0 References: <20230112214015.1014857-1-namhyung@kernel.org> <20230112214015.1014857-7-namhyung@kernel.org> In-Reply-To: <20230112214015.1014857-7-namhyung@kernel.org> From: Song Liu Date: Fri, 13 Jan 2023 13:07:33 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/8] perf/core: Do not pass header for sample id init To: Namhyung Kim Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 12, 2023 at 1:40 PM Namhyung Kim wrote: > > The only thing it does for header in __perf_event_header__init_id() is > to update the header size with event->id_header_size. We can do this > outside and get rid of the argument for the later change. > > Signed-off-by: Namhyung Kim Acked-by: Song Liu