Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3425331rdh; Mon, 27 Nov 2023 14:06:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8se446Q3503GG8jDWt9yt9PG3vP+YjB+E6Vwb49iRjXdxJx2iLivY72Dfp1OXlGIOm/yw X-Received: by 2002:a05:6808:1394:b0:3b8:3398:bae1 with SMTP id c20-20020a056808139400b003b83398bae1mr20967323oiw.9.1701122799894; Mon, 27 Nov 2023 14:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701122799; cv=none; d=google.com; s=arc-20160816; b=vdSGk9RhDhuFmZ44BItwhW3VgUvQuHP2qRy6YPbJecbLu53WAG++WLoTFZQFqJE9Ov TnfmFCM9mm3FxitDSVtmJ7uaUGspRJh1ojSkaUNUS9LuMKdo7znZMGn7cU74ilBt+7uU MRefhkxduziYbTr/ssMsVAqDtmXTvWB+3quWuTwBXRteHyEEct6fibxIQFcFZsFx9nGU q2xPFqrgAPQcusQGZiOJqjkENJD9omO6RUSB3y+9+SbN5aWFBlumphJTBA4WbxF4WOzq 5EKqKt6qsbTVgaxM/fm1wIx+oa1QidkjSLCAGRQ+9CpOfGMdxl/6ugd+rg51bp1XEi3i 93pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QRDPAXvWd8lUCA/J10609HY5M+IFqHS+6Nzaad1bZRA=; fh=SAWsMkJBX3MAz2eaFJlCRqcB8jYQpXZx0yBobF8E3pE=; b=nU3a70mCbWDtsyFXvJH6hCL8w5FrfeGzP/lSNDvvPgw1Pru3a96zLiW+ODSOV0p2yg irXgy92l3PziAdAiWfkMij36TU1T0o+huUjcHAej6Xwe/2niDAr2upEiRgiNdq574Vvh QUIpvtSpvBfjZmQIUB4+6MXLcEln0bmuILQQMeTIAvcXmoEsuN0iih9uXoQkg9ByFU4f gRafJbQzv4K7REYByCc6YujOenlccKuV6bqe1bABAxD9pDVKg+aDJITgMYXqWWSk/RmU UrYH+YzcOZCfd1lWw0DVw65gg09BwBBVAgOBhqgfahvBIgx+E9D1DZJ6saRI/ORxqZfQ MY0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S3qqa5GY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id gt16-20020a0568082e9000b003b3ebe66c7fsi4569894oib.304.2023.11.27.14.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:06:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S3qqa5GY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9CC9C805ADEF; Mon, 27 Nov 2023 14:06:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233529AbjK0WGT (ORCPT + 99 others); Mon, 27 Nov 2023 17:06:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbjK0WGJ (ORCPT ); Mon, 27 Nov 2023 17:06:09 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C28CFD4B for ; Mon, 27 Nov 2023 14:06:15 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3117BC433C8; Mon, 27 Nov 2023 22:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701122775; bh=hT50ThkIvKWMJVrWm5ccSiYE90oywa4kHmvXT/ms/N0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S3qqa5GY3lSoS0P3DeGmJvvogkW10LRRbZt+Pli9oQHWDti5bqKe8S9eYPQXCribx I1gE25n/Q6Gh7dmSbIjfn2U0ID9mZIsBXj051FsBebrvTHEDDYymA0Cf2Fqzh83xp7 2BNEW0BtttYDbolnD9F3kEj9kWYp2nbEUVt65tz2iwDn+wgbEarwKRiYOc1cpO46N9 ZE/JxRT1zio6t1CkrO/9KvPjSPJYZFx5NMusCeYG+KiZrCwMCYgQyUwcg4xbVMwfXZ O/3I9BAibMe6xUub7hnWsywvMO1ps0HM+ARzk5maBynKTFU9OHi/MhTixt8Ty2dxUr agAYtI9sY5WsQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0984940094; Mon, 27 Nov 2023 19:06:12 -0300 (-03) Date: Mon, 27 Nov 2023 19:06:12 -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: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:06:32 -0800 (PST) Em Tue, Oct 31, 2023 at 12:45:42PM -0300, Arnaldo Carvalho de Melo escreveu: > 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 Thanks, applied to perf-tools-next. - Arnaldo