Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp334442rdb; Tue, 31 Oct 2023 08:45:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4QNs+v3v38JfmuNW1OSslL6D/xXcVFU0PsxeXloSXifJ2r7GvmhHCbhHgh9gpgqac7vGw X-Received: by 2002:a17:903:11c4:b0:1cc:6fa6:ab62 with SMTP id q4-20020a17090311c400b001cc6fa6ab62mr1244628plh.29.1698767159154; Tue, 31 Oct 2023 08:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698767159; cv=none; d=google.com; s=arc-20160816; b=PBDlca4ymaGgm/Sx/5Th7zD+sxuLzwmG3JkLCIOUP7CmDiu94ktJG2QqDdm+jFb79Y sWMx0+fs1V1YxB518cRcJbjtu1Ga9cvqpLuKex4uJw0v2A3lgGPX0FrPA3c6wTCNeytG gizMX0eCUo7NMGFfZfJFmDVRI8sETuTB2Kx9MMmHyV6UoDJCvlrG/ZTiLplIgh3wfdDu 4FF+xpByQ5orEdM+gMGf5guCiI44zUlqMAIGTRDLHfNWaFb5hoMdBRznt0ObH71EMFNz kVHL0xxtzqD1KEUTePu9lQeAWHAqZxp2r+AN4hBfiqcjka+TrfHWMIlQabYLJtX0JO9P aZEA== 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=7nhirOK4XUGisYuNbalVAdu9e4chst39Rlmpa6/SNp4=; fh=SAWsMkJBX3MAz2eaFJlCRqcB8jYQpXZx0yBobF8E3pE=; b=dfOTqKjm7JF2nB4ijzUtblaagtzbru9gWxrcOobSsm1wl3W42BpMcnSTIKZrofm1TV zEnQ4vAR32MTk4g58pDo/zeeyGppezEjc+2jCnLJO0W2mVRG7VN8tTd3KP8Wwi2jh0An 1kop9wj5tJ/IBCVdvWHqg1kCWxwceje1SXdpt3BgfENoYPS5zQRbGwD2abDHCoa8E506 l4XcQhRcW/ThA4rZ/wnE7nAgPI+utpHoy+ekPA/084VZO5FSvlVzkSD3Q/BB60kZaqlm YbMOm9xgaWuCJPZtDUsIZpjnrNpa3PHSOVGC3wWu+CJp/mVIT8V3aWs6wqL+PLKT4PxQ uA5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XLRibVfc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jy16-20020a17090342d000b001cc53d110a6si1125559plb.481.2023.10.31.08.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 08:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XLRibVfc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E881F80C7AFB; Tue, 31 Oct 2023 08:45:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232261AbjJaPpt (ORCPT + 99 others); Tue, 31 Oct 2023 11:45:49 -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 X-Spam-Status: No, score=-1.7 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 31 Oct 2023 08:45:56 -0700 (PDT) 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