Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp811660lqs; Fri, 14 Jun 2024 06:31:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9STlBnMjx840wCAWAC8JthjQ1z/VLLxuVbEBwjU9OUFa5V6tXBfzgPBvof+eCJpKsuYd0FGjpVWUfJQzL/shlo9TnHNJHx8eBomRVHA== X-Google-Smtp-Source: AGHT+IH0/PCwRaFobJXsD+gB6u+MPItthxhMYD/09/hPAB6pChcn/bYQ5TizlbQuhj+WKnCMmVwx X-Received: by 2002:a05:6870:9a1a:b0:254:7936:e1df with SMTP id 586e51a60fabf-258429517a6mr2810149fac.22.1718371887568; Fri, 14 Jun 2024 06:31:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718371887; cv=pass; d=google.com; s=arc-20160816; b=WnbgnTJUx8gkS14Ow6JqKzDjQanc0JQhZCIKGZzkVaYSpzYW+adB+s7hsYz7ujVGhX ylkZgzNC7vI8YyIUq9mp94cljEp9pNQk7EfAeHemt/ZhC03YsLppTRvP2kC9pwdMu/t8 QMl9xHKjA7PEYojygs3B7SYX1bJ90the13BCc6fVXXdZj79Ne0Ftej2VSJsLZcyQ8kJG BxE6zN+Vt+dwVGZle19uLeLhO0y/VjuG37WUlfvkXeOlLvgMKGcfySdS+lfkcKSmJ/n4 +7KCxNuSPoIkYtyAKUjtwki2HCV4kW5G8YPgkGt5q+Nf0NBAKEL6j0sRY+22OLLDWvVX 3Rqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EPGeymoJrTgD3Xvic3xw54EJMhmIJ+Pj9xCTG17vHOo=; fh=k6CxQeFpCfX+Z0MHAZnhWRILL4+6RKzr52CUIYuCFO0=; b=BrkRHiiPfgKD6TnY19VwuJkkoX6IwAbB5TgIGaYuVUB7VYFZZdn9AY9FImWoXcquTM bQBBVveN0CACGI/1k97nWwq+LhEaWvI4sAQtixzjZdQnwJiJ+jy4mmexy4pksXJnNpJ3 02OT1BKzYpbVuwLaS0L2VPUEiIneemLUJ0gSEVA+9rxvZTlpGsXr0ee2r9zt1TUw7yml GMJ+tKHUFOaUkFfzjW76uG8uXOwovuoLrAY+W8/YaTqzDxHkFvSN5gbd0pPeRrNbUlyP BNopsJCuThBLtjcgD2Iv00uHkycJbocmiq5ptTR36x8qZFPUzI2lSKQQS+oYjyBF/B2z 6ItA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fbh9QE+b; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214945-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214945-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. [139.178.88.99]) by mx.google.com with ESMTPS id 586e51a60fabf-2567a9c6f78si1436096fac.121.2024.06.14.06.31.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 06:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214945-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fbh9QE+b; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214945-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214945-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 2B827289D7A for ; Fri, 14 Jun 2024 13:31:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 121F94A1E; Fri, 14 Jun 2024 13:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fbh9QE+b" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39EB51854; Fri, 14 Jun 2024 13:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718371880; cv=none; b=bd1toGjvQKbRHEIn9eZQUa/qbmScKaoIeSrnR1nY1j7c7d8AeaQaohojgO8RBxt1uQHGVHsp6fyEg3aIMTBP0yTzd92rS2X3GaFrVQ/Demy13iJLiVvF7SallPE+5ToLMqXMi8CNAhQCX1B8AGGTkIJumhXCQNOsZRmmpOkswJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718371880; c=relaxed/simple; bh=XhkHg7eU0fmPQAAgNc8nWOI+aXEfsTCZvQ0c8OcUjGA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=atgGoTHGLHQxkanW7qlCSO6GZoLJ5eOf76os7E2GRWaj56bVB+P8m4SaNQWcB5Rg8nEpS0LePgxClJo8deyxdYRhpvKMgtcBK0MgasH3pSXGkDhuHpWX2739IzQuRhV1S8ZEN0VZDKhSGwBqYQN9P1OPPXus4n8SimKh4ssgT+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fbh9QE+b; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 511E6C2BD10; Fri, 14 Jun 2024 13:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718371879; bh=XhkHg7eU0fmPQAAgNc8nWOI+aXEfsTCZvQ0c8OcUjGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fbh9QE+bN55WIEOEv8V1EivkDvHZBYwy6N9155V93U3nz2MbMb5Dlq3O4MpETQE0D qUsKMkVfsiNJZuhrWTcP1qKjvbKL3og3sQsujO8l+xQKW03+HSUbHZC7FnhzoW5etj +Qkc3iecTcJMMBfeBQy4/9aDoWRBdrSQXh/9X79cj04yXw09jPyy/mmlTikVZd3dWI a/OdMte/DuhU04/4le9B4yT1ZD8DlkkMOFS5OwcfthS6W+PrL6fivi66npqysp/hiE bLNS7ADPMNxHUB3S+WZ6MVr6vSXCT7krtp3kRGWAhQ0rsagwZKCl5DEXEBQnlEqCAk qI3l4G1e2xiwQ== From: Namhyung Kim To: 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, Ian Rogers Cc: Milian Wolff Subject: Re: [PATCH v2] perf record: Ensure space for lost samples Date: Fri, 14 Jun 2024 06:31:16 -0700 Message-ID: <171837125174.3039059.16928717312076037768.b4-ty@kernel.org> X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog In-Reply-To: <20240611050626.1223155-1-irogers@google.com> References: <20240611050626.1223155-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Mon, 10 Jun 2024 22:06:26 -0700, Ian Rogers wrote: > Previous allocation didn't account for sample ID written after the > lost samples event. Switch from malloc/free to a stack allocation. > > Applied to perf-tools-next, thanks! Arnaldo, I'll resolve the conflict when I merge perf-tools later which has the revert. Best regards, Namhyung