From mboxrd@z Thu Jan 1 00:00:00 1970 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 7EAE11DFD0 for ; Tue, 31 Oct 2023 15:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XLRibVfc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4783C433C7; Tue, 31 Oct 2023 15:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698767145; bh=FhBL9cZlQZxwRCs4ScUGBQ0z5kjLw2kWgPYm0rSMTGE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XLRibVfccEXi2pbUadWLS70vOk8fLLcmyUU1x6ZAZJo0euyQmXjuqVDgbBHF74lZm bu7l3oqOX+8e8psFMdciAJjgLg8pIRQSmtR43X+4rnZ0h6r7en92Yiu9ghCmEanJ9i /Vkfa6vtBcw2DqWevvIuofq8LlzrZCgkH4TTv5LHEZXHl9o5ZTKH45vNxRzW0OVXh3 27VeGTeD9oKvbvJdowAFiRIjKGV8mOAZftcnTSu3ZEklAVAUl6fgy8+gHFkoPZ/aas Ttd8kQhj9l3gBf4mJAIqz8f6h1H3bBxx15BY97Ke4J8PWm2eBz4aceb8CFMBI6t6zK ahdhooVC50wTw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 86BFD4035D; Tue, 31 Oct 2023 12:45:42 -0300 (-03) Date: Tue, 31 Oct 2023 12:45:42 -0300 From: Arnaldo Carvalho de Melo To: Yang Jihong Cc: Jiri Olsa , peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf tools: Add --debug-file option to redirect debug output Message-ID: References: <20231031105523.1472558-1-yangjihong1@huawei.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231031105523.1472558-1-yangjihong1@huawei.com> X-Url: http://acmel.wordpress.com Em Tue, Oct 31, 2023 at 10:55:23AM +0000, Yang Jihong escreveu: > Currently, debug messages is output to stderr, add --debug-file option to > support redirection to a specified file. > # perf --debug-file /tmp/perf.log record -v true > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.013 MB perf.data (26 samples) ] > # cat /tmp/perf.log > DEBUGINFOD_URLS= > Using CPUID GenuineIntel-6-3E-4 Ok, reusing debug_set_file() that was introduced to be used in the 'perf daemon' subcommand. Acked-by: Arnaldo Carvalho de Melo - Arnaldo