From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 190941D7E48; Fri, 13 Sep 2024 10:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726222503; cv=none; b=dbHdf/uiyRh7uwcGHXdcxE9OcUCjgskaLAdcvVWA13Uty9xDvDyU75M9Pliy1dHcTQK04pVUS17RLCVp2XQzwKB7tTyHPmA98c4GU7G1GqIe+Mpg0Xyp/Mvb2t/bw+rar/+j1ZmI6w0AIymQ08/810eItekJZZ6DXPQazYQCWhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726222503; c=relaxed/simple; bh=wTnTcWZd5q0HHI5/amdp3oM9JXyCfPyWX0CE4T/qBbo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=NUkJaS+o9r5Qj/FxDKsr/WNQe6E9N5GYGpfGg9W8+iU/qoxozCGU3yuAOBSZL9ij5ye2ceO41QZ0TEvmh9hFhpsYtWau6WUlGvYQbIC5lRQAj1APZf1t3dudEK0DlLXFj2GNkju2PqC6tOaFtGQ89a0ZAfy5HM/WEzJsunwO3ZM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8EB5C13D5; Fri, 13 Sep 2024 03:15:29 -0700 (PDT) Received: from e129823.cambridge.arm.com (e129823.arm.com [10.1.197.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6EC303F64C; Fri, 13 Sep 2024 03:14:58 -0700 (PDT) From: Levi Yun To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, james.clark@linaro.org, asmadeus@codewreck.org Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, nd@arm.com, Levi Yun Subject: [PATCH v2 0/2] Minor fixes error handling of perf stat Date: Fri, 13 Sep 2024 11:14:54 +0100 Message-Id: <20240913101456.633819-1-yeoreum.yun@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patchset fixes two issues that were seen when running "perf stat -r" with perf_event_paranoid=3 1. failed with Too many open files. $ perf stat -r 1044 -- false ... failed to create 'go' pipe: Too many open files failed to prepare workload: Too many open files ... 2. repating error message $ perf stat -r 1044 -- false Error: Access to performance monitoring and observability operations is limited. ... (repating with same error message 1044 times). v3: - Fix comments. v2: - Add some comments. Levi Yun (2): perf stat: Close cork_fd when create_perf_stat_counter() failed perf stat: Stop repeating when ref_perf_stat() returns -1 tools/perf/builtin-stat.c | 11 ++++++++++- tools/perf/util/evlist.c | 14 +++++++++++++- tools/perf/util/evlist.h | 1 + 3 files changed, 24 insertions(+), 2 deletions(-) -- LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}