Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3058063rdb; Mon, 4 Dec 2023 15:53:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5GfMAOfX2Bi1G1/HsjEsPdznAqSGQymyU8veng3CTXkxNYafApVspZxR4LnKhTnZMgklZ X-Received: by 2002:a05:6870:65a7:b0:1fb:75b:2faf with SMTP id fp39-20020a05687065a700b001fb075b2fafmr5335356oab.70.1701734014180; Mon, 04 Dec 2023 15:53:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701734014; cv=none; d=google.com; s=arc-20160816; b=zVSeD2ZnvsP/bs2QJ8/Fx2yiJGYi/TyIGPs9SDKtdyJEAxgRU3DY/i6lWIehOFRKKU TEgui492N4DQIY0nDdjU9pWvYqnMnlxPsINH2XFf9bhAzBSK1oA8YtJoHV0aKI9cGxPI 7QJ/K1XQq5VLcpJLy41HVfD/fSSvAVIP9tPkSbCrQogQ6vueqzxsA6KSU3oEQThU/X15 IU+FzC0tnfagRKL1zv3sT6uhycmt43sb4q/zDBK5QW8AiVC+PzE7xpBO5tdElmSBJ8MV l07FNdtO5TZktBYq3OgSlAAPNxwevdRRB1qVbqUrRKOU1d/qXoWXNMQ/g1u8SI88HES9 pikw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=0GyLIvAd2xTfjqrI3bGrZCTTkiRMmE6sH/6YFnc2Z3Q=; fh=aWa9tyepd0GWyBFjkZa5ys7uNwpZ1AjfSj0Mu1iuQbE=; b=JauFpclD92YTQmOq/3bx1mtxbe5gDfyhES+tE6P0xQ7BY6Q3oH2G1W4G9aU7fgQouY gc7mkYNkoci1TfABto9/In8SbDQcNonGveevIPta7/YFaA1GvVFGDHoX/CFEQsJ7GASM dz4EA+DiUo/9KR9mb+94hn8qEuh1e0UaHFEmZCXz8jGf7GZu4jv+CMpzTQoUAas7Ty+P akuAYBKDKocifM84yRio8keuTZa5yjKfZszA86SPheLto2zdU/S5npAG2WT7x7UJ5nWz Qk5dUPpziKZotxO8uaitT8jst9iGLFYwAVUAfeocVjZEkcQxB2ZNQa2pFxaBW1XXWctE /dvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bx29-20020a056a02051d00b005b106cd44casi2297302pgb.145.2023.12.04.15.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 15:53:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id C97CA807386C; Mon, 4 Dec 2023 15:53:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234661AbjLDXxH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 Dec 2023 18:53:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjLDXxG (ORCPT ); Mon, 4 Dec 2023 18:53:06 -0500 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79BFBF0; Mon, 4 Dec 2023 15:53:13 -0800 (PST) Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2864f8131d0so3017401a91.0; Mon, 04 Dec 2023 15:53:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701733993; x=1702338793; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/+TtyliQf0EH2X32bYncLIjV/Lziv4VdH2jyUgvKbtA=; b=muN0S+46MxlE8oZaQaF2mNns8pFFSx0quCu7r7B3u59oy6x6fw3HDUGyM9RNvB7ts9 Mjt0eTdPyytU7dG8mfW24g/SkJZTFs0Qdmf2gQoY2+zphdbOUTVjuNae+3rOfTW0OMIY oMzU1mWFdGYGQ5KdsVPtKi/AZemotWrQSloQmJo7ml8fbD4+KMOl3ZqEmcKaYHaEH1Oo JmwemVqOKUb93cSfxOVCZfYNbsSySHDtYqLilZAREGMIZd2cD3Iz1TqLROjUhhvOmvru P5lUPVPt8SRCSnhjtJC+r4gI5Ru1+tKRFQNkHXFCtM/BQBy9uV3PueP76GbrzPYq+ab6 XtiQ== X-Gm-Message-State: AOJu0YyFgfVLJzFzeK1yhLfn89ieMtaLoVUfCWjTe0BC5HRUTkyVFeUS /DM/AqHUq3Wp3SW13qlUJVf7mbsdULMzRVuwHpA= X-Received: by 2002:a17:90b:4a8c:b0:286:4579:a67c with SMTP id lp12-20020a17090b4a8c00b002864579a67cmr346504pjb.15.1701733992858; Mon, 04 Dec 2023 15:53:12 -0800 (PST) MIME-Version: 1.0 References: <20231127220902.1315692-1-irogers@google.com> <20231127220902.1315692-18-irogers@google.com> In-Reply-To: <20231127220902.1315692-18-irogers@google.com> From: Namhyung Kim Date: Mon, 4 Dec 2023 15:53:01 -0800 Message-ID: Subject: Re: [PATCH v5 17/50] perf debug: Expose debug file To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Guilherme Amadio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 15:53:20 -0800 (PST) On Mon, Nov 27, 2023 at 2:10 PM Ian Rogers wrote: > > Some dumping call backs need to be passed a FILE*. Expose debug file > via an accessor API for a consistent way to do this. Catch the > unlikely failure of it not being set. Switch two cases where stderr > was being used instead of debug_file. > > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung