Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp453204lqp; Tue, 11 Jun 2024 09:06:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGdyin9Vt+epZymFe1XjnOQyH+ngZYmXS7q4F8UjaxrR6huTfwcIXIqQ5Cy4nl5c1ZqthLNSWvrh7HW9GHUc9yr4IFu7ozp/kM9tP1Gg== X-Google-Smtp-Source: AGHT+IEiiyxpz78L2jr22YjaC93OayDWsIRUDqGknZmEqcUyTfYPyRxYwQ0r6y7l+K2Y7hlt3Jqv X-Received: by 2002:a9d:6751:0:b0:6f9:b4fa:2215 with SMTP id 46e09a7af769-6f9b4fa2294mr6661594a34.10.1718121976782; Tue, 11 Jun 2024 09:06:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718121976; cv=pass; d=google.com; s=arc-20160816; b=avoPzRhN5X0KEEoRBv0KoM3q0pXS/nQ+AMMzC944W8cULFKalSSn7giT7QCujy/Y5q zx/oJf/yDvp/p1y/IHX8TzjcuQgR42Hm42wYeVbykZBp10gor0jKMuB05IV9AKLDaLPD qtHMLMhs+GYp7UG9y9IzFVAaZYN3qcmZRlZYaNyE/TzZxGM+XHcWTutUtqbi80M64T75 R0hbpQFoSH1SNhPjpBMDmPkNA06UklM4J1WlFKDZFHJRP8afw8ViaY/Fug/PXeUtre5g YQUoR/3iEg11nlw6ZxwwGqlo3tiN25vTUNt0AquKP2TLa7xIeFNrTTAUwLhuOVaZGtyH ViPw== 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=QOmpk5JLZ6uslcuqiWbyefS2HUNhd02h+M9Gsm9Qv0s=; fh=FUT74nlk+/ZqByWHNGhiwLnMzeYrjf0Ht2quGQx/uuc=; b=V8t8VTergef547QV8VYzpfkSvY6BTxJiSr8C3r2rBzRDgQlrxPvEyQXlQ7u/7odNQz GsuObRZfwF+5H9DMi/KSRGVEd134K7607YalwciTqV7TF1hLkOxhJbxUJk4a/xZhOJ7b ZE2jYF/AqTBv6E2au6FyMUHWaoUBgiTgeLQAe7/B7WR7VPMzWaP5oQCRpi5h1mEZQldQ Fanw6j682vHw3eQ+eFHJfpPArOCytrxrJ9yp0vx1XmdVdwEjcMY+EickWRF3m7NqWPUy 56DboCQAcbSYliv7NzX83OY/+EDbvOPs1yWQMu2j/j8XtkUAX5TX1LBXuXraNZNr4SqF bTJg==; 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-210209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210209-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 46e09a7af769-6f96a99440csi2599373a34.158.2024.06.11.09.06.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:06:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210209-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-210209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210209-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 6BDE1285F45 for ; Tue, 11 Jun 2024 16:06:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 759C340875; Tue, 11 Jun 2024 16:03:39 +0000 (UTC) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 967F22B9DD; Tue, 11 Jun 2024 16:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121819; cv=none; b=GNlJcteGcHkYqTbqIlVETeiU3/IpauvyS8+JAN8cYeMvcuz7H+f8i/6nLsV0/noySZS29soakQ4HEbxOlxeeL63t53N+uH6qitLxJActyI0drlBA9a9vjTh8488UffMUN5sNpfeAnxIeackr1A8ceBicZxsAHCg7iZVmwLBRMwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121819; c=relaxed/simple; bh=QOmpk5JLZ6uslcuqiWbyefS2HUNhd02h+M9Gsm9Qv0s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=g/bbZCxs5epY1JxDRnMebCsFPG0pzMIF0is16Wzk7jNCpTYXF0OyQ7/Skeq5t0AGa3/SdN583QKdAaRMXBgYoAEcwxDo/GkKxpHpR4iK6fJ6Jg90Hdc3fAXtSVRJ8JeRU+YXvIoUM7q4tKBAtcumspP549mQffemYAaeCsd+jIc= 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.210.176 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-pf1-f176.google.com with SMTP id d2e1a72fcca58-7041053c0fdso3078824b3a.3; Tue, 11 Jun 2024 09:03:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718121817; x=1718726617; 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=QOmpk5JLZ6uslcuqiWbyefS2HUNhd02h+M9Gsm9Qv0s=; b=VQZddW3G+auGb5ODXXXvfmnmM1xVszRHQ8Dr3+rsiWubmfMReAd8rfV+shzv7DQ38w 7Sm2QZeCjxxG4bZ/jYYW/qmRMmuufxWiQpNdmXM+zBNxhSYUSnXJV+c54NZiUxlxc3Rt HVfrldPsqLai48kLBphJ7axe8UIgLovpissO7CGLPKed/QOiDdQmoIB58Oi+2h5evg2l RYW/BlxaNSGnUqeBZnffAqMonmaIH0D6HTeOQB+pWkSpeKp6VTLlmUfAR/ibTL4SeIsJ 3ObDRAuMERiGnzX//zx0C+uWKFt14Y2fIeXOSYWAO6VzGTWQ9TX1eDdV06AmqdaykhSc XpMw== X-Forwarded-Encrypted: i=1; AJvYcCWzOcKBKVXNTvInjFmuX5goZpsYUK5NvKiYD0Edo0wBzRG5PSkSHopFaqssy1IjHUgZ8i/T1ReDm+fWTzNFuA2aRWSox0TQ6bN69PnIg4f7mLmowCvf/84KwdTsQkSptJ8csZkRKaFqGxTeGxqb4w== X-Gm-Message-State: AOJu0Yz486b4ZW/iXNIXW99SqQTkZi/ZrH08PxXllklXlSORgm2BD1G+ J0Wzb9mHU7XVrB1/ktdaQHBw1J8voaNeBCKgclW+ErCRkhnny9DEqC/YHywrXJFUgG7eE8ePf1f aBHzQ5FJPCK9WZDcMPnJa6z2rln8= X-Received: by 2002:a17:90a:6b43:b0:2bd:dce4:8f90 with SMTP id 98e67ed59e1d1-2c2bcadfcb5mr11942400a91.6.1718121816689; Tue, 11 Jun 2024 09:03:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240611050626.1223155-1-irogers@google.com> In-Reply-To: <20240611050626.1223155-1-irogers@google.com> From: Namhyung Kim Date: Tue, 11 Jun 2024 09:03:25 -0700 Message-ID: Subject: Re: [PATCH v2] perf record: Ensure space for lost samples To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Milian Wolff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ian, On Mon, Jun 10, 2024 at 10:06=E2=80=AFPM Ian Rogers wr= ote: > > Previous allocation didn't account for sample ID written after the > lost samples event. Switch from malloc/free to a stack allocation. > > Reported-by: Milian Wolff > Closes: https://lore.kernel.org/linux-perf-users/23879991.0LEYPuXRzz@mili= an-workstation/ > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung