Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4280003ybc; Tue, 26 Nov 2019 06:42:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwpp6pf27zadByA18EuPL1C9hHZ14819NEEzhYIoht6DxaSqq5BQ04K1PraIzvkU15X5Qe8 X-Received: by 2002:a17:906:b2c7:: with SMTP id cf7mr42370275ejb.218.1574779357692; Tue, 26 Nov 2019 06:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574779357; cv=none; d=google.com; s=arc-20160816; b=h32v9Vzl7LgqZhWAZ2Jupvch3QWhMqAqcg+sXOH4wOIJG4BoT8L1hiv3yWkAJSUrGF x4c2UIQaUnoEP4S+pPM9+LX0ADCDl+RhrK7yEuuW5ENXgvyZYNbFmrGFYnPmXAcyptmY BvOgs90Gn5eQCxRVdhPehHYH7OcZflPxf7Coq59gA6n35DlMFNkt5EDspchRIaPE4TRy x+4A8hT/P90r/0R3o0bbxdPxuRijwU3SDhbKcKpUMQfrF7JlePtLoo4VvurcPEaM2vEb AqDboi3C0jsxZRkmlRUH58ETm89yoHZnwxZm8wGj0JNwdpBdzl0KG8qNhdvsm56NIpOO MsCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=80HMpaNNIetcsBLd7p8lo9lIL8LSsMPMOHQiZQjM/QY=; b=ntOTK9y3M1NWxS28DnGYMegkTgC5npu1yaI5DPLnpIYePas/1OhcyTTi3hNV2zwWt2 j7DOe+onK2JPt/NS3MVzBOGzfLS4vCb4dDwLA1WJZ0JrYhI83GlpnqQ3qY5EfJXP9yTD 1tK+sdpV/FtU9WmQtG2TCeRIAGMbEzV5ZV59IVMxm6R8/fxG7GbcuPh2tD++5Ya2GAF1 9315nEW/uDHplxSOEUBSMPrrgHeUVULwsdURHjS7EeBix25waQsp1l4CFMktxwOR5H8g 7tYNOe+5t2YE2tvTCCTLrPxK44ZybztOahCwLMMMsP/bHE65H2KDXpfSAM83vkwsmhP+ berw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ovynd+4n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo21si7897693edb.137.2019.11.26.06.42.14; Tue, 26 Nov 2019 06:42:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ovynd+4n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728223AbfKZOhi (ORCPT + 99 others); Tue, 26 Nov 2019 09:37:38 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:33945 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfKZOhi (ORCPT ); Tue, 26 Nov 2019 09:37:38 -0500 Received: by mail-pj1-f66.google.com with SMTP id bo14so8388232pjb.1 for ; Tue, 26 Nov 2019 06:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=80HMpaNNIetcsBLd7p8lo9lIL8LSsMPMOHQiZQjM/QY=; b=Ovynd+4nfCXpIdjSo7JwbGc9Asx/QZxYdVvJbbLWnUkGavj9O/gzmNAQoZVBivoxkk 8bBvbUiBH+zIJ17EC+QqaPOCjQOB0+twui8O5QzYgPDmt5iFkh8NU+aH45DKP0Qlns2+ oGvjgfScGFrTYIP/9+WnOaTxsL9WXmfjqugv397u820EorOsDPTRyaAs5AT7jTg1om9M 65DBfnV+WhDpK50zgk/FpEdwCYBH218NNq71MSw+KvgPK03Up0zpjWnJrNasS/FR9r2d WOl4P4sxsQsXQ6/P+sm75As9eDGiPO91VCHGrCinSA+lGJL1jfNh4r8AGuQB9IzAjiMi Qz7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=80HMpaNNIetcsBLd7p8lo9lIL8LSsMPMOHQiZQjM/QY=; b=VC5shJUYBCupcmdY0vDatbLPRlUB1Hy9xgqYmC08gKl4sCRTNRpq+BSddhozY59QwL LcsDoeA1+dOw7xz1YCMF7f+JwLEduTXMO6nwTsblbw3pt4BJvBf9cofHxV2vPY7hrL8F S5I0iND82Yv9/qyckiKUCn4wmEx/O2WAKcCt8YDFqNsK8mFx3W1SkjePnzH37KMYRxN9 qQs9021mWcdexUXP9N2D4/QinuVfXN3TCDwutxXCpRyKXZoPyLNBtbqZ/HN2YK+gu7Cc sfxET0g7BquAdkW2Gmn9ZY0XxPxKR4pYI/g86aLaX/9bTCTiaamHd5Oo6oFx+dbiEgZa KfYw== X-Gm-Message-State: APjAAAXzwYq4pJN/QPcFrM9KllyfHi3C+XPzxCMs3zIXrZl9j1Jjr9rE 9/9pDmA48Pvl7zIjiOKMess= X-Received: by 2002:a17:90a:db43:: with SMTP id u3mr7454781pjx.56.1574779057481; Tue, 26 Nov 2019 06:37:37 -0800 (PST) Received: from localhost.localdomain ([139.180.133.10]) by smtp.gmail.com with ESMTPSA id b13sm13139368pgj.28.2019.11.26.06.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 06:37:36 -0800 (PST) From: Changbin Du To: Jiri Olsa , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Alexander Shishkin , Namhyung Kim , linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH v7 0/2] perf: add support for logging debug messages to file Date: Tue, 26 Nov 2019 22:37:18 +0800 Message-Id: <20191126143720.10333-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When in TUI mode, it is impossible to show all the debug messages to console. This make it hard to debug perf issues using debug messages. This patch adds support for logging debug messages to file to resolve this problem. v7: o fix a mistake. v6: o rebase to perf/core. v5: o doc default log path. v4: o fix another segfault. v3: o fix a segfault issue. v2: o specific all debug options one time. Changbin Du (2): perf: support multiple debug options separated by ',' perf: add support for logging debug messages to file tools/perf/Documentation/perf.txt | 24 +++--- tools/perf/util/debug.c | 127 ++++++++++++++++++++---------- 2 files changed, 98 insertions(+), 53 deletions(-) -- 2.20.1