From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4BDEC4332F for ; Tue, 31 Oct 2023 15:45:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232587AbjJaPpu (ORCPT ); Tue, 31 Oct 2023 11:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232376AbjJaPps (ORCPT ); Tue, 31 Oct 2023 11:45:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F723F3 for ; Tue, 31 Oct 2023 08:45:45 -0700 (PDT) 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> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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