Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2289365lqo; Mon, 13 May 2024 13:39:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9LF0CmwxQzWSUXJUEx8BpvMrKp8PIZqDicVfs/VBotB0KVwFJgjZwsLXUeKadM9Bk8xxxvyvHOFGJiyJx7SRtYOv9KKtnyPc2wAJTeQ== X-Google-Smtp-Source: AGHT+IE+GWyFucIQIu7cpyl+6LC/jtk4dnlS5gCLsAJqHzYva7JWlFJwxJAOo+J7T0kZIDWi47sN X-Received: by 2002:a17:90a:5901:b0:2b3:28be:dd6e with SMTP id 98e67ed59e1d1-2b6ccd6baedmr8914815a91.33.1715632767924; Mon, 13 May 2024 13:39:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715632767; cv=pass; d=google.com; s=arc-20160816; b=KPpnI65v5gmbuI5ydTARehxws1houq4PVercOHTJlz+IhwZP92kafdELH3uBvDsObD fZ6g9GlVpn34Up5jC7LzLwoJcCSsxWYv5/SP3wcsrhWD2sGZjTQQS8B9njHMDq5SUnb+ 7YDzuw3nt+ZqSwf07+wN200PtOAVm+zSa8gHrHWI2kn/wpxs+LMrtLsKBOdrdpVPW1a1 Zu2Vas1U7dIQdfZRy93fLeAATy+hL/MkfTDUst7c1l65uHs2pm+v0SwZSrRzgwLXjzOE Myxcr+naAILqSXTbMKkBtijj1DuOx4uW2HxM3QD4pFtsT4OhV3xfuP4gmV9QKmIMydjW zo2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=QMdSbsIUDp4fnJ0tPLW9CHarXx/pt+cDpbweLwiPVH8=; fh=5kPeOChdUgIhtTVVh2cP1QAcuoAY6t+oy0Sai5OffeI=; b=xib1QLK4HJbG/YJucDuVtsAeFEP7lkB6pEn07hO2YiFP+oD1Mii3Ew05RTsKw4v8Cj ZhyeP5ynBNg4IPMe/muLMRzwDHcyO2ic5ps5ixK2edJnsERm10wEQa+h9TaW8YLmxCS8 uH6QfmNtkqhwvTlhiIMK756Aw+K5KQWN/EjGP6Ma7HiVLXFxS3l5BM4iAAhr06df5nO2 udqr4qRgxaoCDTQ+gWXq6zn9uCnpeOZdL1FgTu9L98GuFcx3/NIwlS+PBoYuwHYPzdJC 83LsX7EHW7dR7HLjiYtgoqiejIeIANRzhR2/fuW0yMTUqIdJ40EDbqtXu5TRvFkq5Vko wWYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-178079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67177e6b7si9774961a91.169.2024.05.13.13.39.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 13:39:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-178079-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D13E281F23 for ; Mon, 13 May 2024 20:39:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DC1780BE3; Mon, 13 May 2024 20:39:19 +0000 (UTC) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67D237E575; Mon, 13 May 2024 20:39:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715632758; cv=none; b=CfQo+vh743cWtrbokFeaiGbFsca6FSf30HmgoEcqf5BAMcSNizA2fnI4rJNX7yTvCAHEXkpj42NxFNuamZLffAPw0je5CAITArXQ9KCbeEKufR3LEHNQusd1wIltAI99MMHkd4mXs8RIidHVUXw2/4kJDi0V+YRbGIJbPEnBhEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715632758; c=relaxed/simple; bh=8vMRy4szMOnPXyhw6N0O+8flCrkzToamhCJ98N3KqF0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GbiH+KeCBFDamK6M5/5a2Yb2sunHWt8/FFWdwNEMstmkI8OaRsQiE8RtpJXpNZs+kS5ZndwxQfXH5Mi7Z7se5O2EL++okRzb5mnR/GtDLauMbb0TU7RoTTCxxSBQo2igOQXfezVsBahcCzqJClE8CDZ/L1kVfLOAFhE24EJlpII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5c229dabbb6so3106813a12.0; Mon, 13 May 2024 13:39:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715632757; x=1716237557; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QMdSbsIUDp4fnJ0tPLW9CHarXx/pt+cDpbweLwiPVH8=; b=sfJfGLb1VSVZPcsKpi/p4IsKa7Xe7Te5N+4rrnMpzqc3Fxybk81IhI0BRLBHmpk1qG vzEnXKaWUtQx9dtHTt6bldCleN2NkHk28RnJk3AmWhsVAdGwCOVjnUbSazwH7MYWKkyf y6DzuRBtsX/NrYYOhy9OiBgjCPwu5hV24ytmVKPGxGfbjIAROinoOgMdnTGcrff3ABev jRlUpiq3X9BtEUa0EzEvqQrJA9vGcuh6Gc3RtEsjLeXXVdBGH38RhmlM/UnnHWtAPChu fp/WOWZKP4K3KZeZEYwQbHoMdK5Jk6GzftuBrNOzAQUoJlQ5P8zWZnzo20cddoO6hwjY mzSw== X-Forwarded-Encrypted: i=1; AJvYcCVOh6r1ylxPuKQvBszlnaAMDzzTYa3vARa/SYGREWy6lSDslPSY/lP+U71a7fG0WPlfhJ29ZCsVdTZs7qv22tuD9Z1yBqJ8CbP22EumhbR6xv7Mb5b2i/FuWUMp3rvk5HbB341ur3Xug4MEcD2d6eXu3GKFutDrmKTj+yi554IAwUHMaQ== X-Gm-Message-State: AOJu0YyT7t7AEvJxInjVokFDHqvlGrJtn4SUVvNQ5K1ziWkzuz7elq/+ jV2MFZz1F6ot+dIAzxj/oLNYpjKDjwWhN1NJoWR2xUzfX2So7wPH4yvnvAs4DaCtRHWThRoul2a rL3QdzAoEei3eqvCYiYNuJuZ66sM= X-Received: by 2002:a17:90a:9318:b0:2b6:24bf:6b19 with SMTP id 98e67ed59e1d1-2b6ccd6b99fmr8662382a91.31.1715632756645; Mon, 13 May 2024 13:39:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240510191423.2297538-1-yabinc@google.com> <20240510191423.2297538-4-yabinc@google.com> In-Reply-To: From: Namhyung Kim Date: Mon, 13 May 2024 13:39:04 -0700 Message-ID: Subject: Re: [PATCH v4 3/3] perf/core: Check sample_type in perf_sample_save_brstack To: Yabin Cui Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 13, 2024 at 11:31=E2=80=AFAM Yabin Cui wrot= e: > > arch/powerpc/perf/core-book3s.c checks sample_type, see > if (event->attr.sample_type & PERF_SAMPLE_BRANCH_STACK) { > ... > perf_sample_save_brstack(&data, event, &cpuhw->bhrb_stack, NULL); > } > So I think we don't need the "fixes:" line. Oh, ok. Thanks for the correction! Namhyung