Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2955346ybj; Mon, 23 Sep 2019 12:09:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtnpLUmUZ5H1MsNdLgWPwNGU/ww3abmy5bO/HFbTRUTXCopROzKktRJodgfjufafRlQjgB X-Received: by 2002:a05:6402:17eb:: with SMTP id t11mr1673956edy.97.1569265764877; Mon, 23 Sep 2019 12:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569265764; cv=none; d=google.com; s=arc-20160816; b=cV78eje1t+kJZ+iK8kVsG85X6hZbh82SGI/oZjTIyW0EtM/R9J1ZlXvT9q6H9gonVg 3STCNXR+OzFGED6ucVxg1TajCi/rSjpfGF3Yeks3lG2WN1P/5sW3LSQi7Of8pXJBS2eu 6aCyAUBX8kRN68a+R5+BE9+Dxtxd040bBaMD+Ul417SvfijLOfMkUlylxnUlelRtTv2z P/pSKDHVb4dP/LrfVW+w4NoiiocrDZybFSBINeYMMrOoRDAOdle3lTe3t931qDbggngh l4fnHdlYPs9+HUqQluuNNY3YNQf5tbuEULoI65gvrpemohluYetDva1aGnhptBFWMW50 uwYw== 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=/wSbkkwawgKPbta1zkW9vqCbl1AsXFrP27iZvO6nPnQ=; b=mBg2QcT4Pt85epxNnBhKRpNd/1dAQ4g2PI1wluZXhX3wzCQoldEgp1TNaoGJVBfKip 3jYElwcgtieYCXcvTIJxysi7KwqwJel591M7bpU9jHrt7S2m7R3mb/rHrvuON4MziSh3 6qFVK/T3XauB+VCJVzZGrGBIqEOiJkUEk03NeyTT3MUsRv8C7Ip5v3xz5f4iIqqIo6fy zb9wDTxoXBAd6ZNlz59KufPU2nXmhwRtN9SwnsurlgBPnUHAEQbu5f+y48Z7TkKrLoj/ sSye0fYHgUn25OplIWDOiECkK9sb9p8x0O02oKz0tqJr+sHkNlkNZI0FEiS4lKhIlWTy QWCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aPpfxyx4; 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 o17si5380735ejm.261.2019.09.23.12.08.59; Mon, 23 Sep 2019 12:09:24 -0700 (PDT) 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=aPpfxyx4; 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 S1727249AbfIVCih (ORCPT + 99 others); Sat, 21 Sep 2019 22:38:37 -0400 Received: from mail-pg1-f170.google.com ([209.85.215.170]:44053 "EHLO mail-pg1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbfIVCig (ORCPT ); Sat, 21 Sep 2019 22:38:36 -0400 Received: by mail-pg1-f170.google.com with SMTP id g3so4378349pgs.11 for ; Sat, 21 Sep 2019 19:38:35 -0700 (PDT) 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=/wSbkkwawgKPbta1zkW9vqCbl1AsXFrP27iZvO6nPnQ=; b=aPpfxyx4jp2EX2CCs7/pY6hOVi2VrEUnY/kwUEJCr+U9S1ztGz1iC3n4cS3E9nBoYq IyYvKTXgbMJEZMWxk4ewnFPcmZTwGb+N9rpcn8LTSU/JDOmufvPy+F1X0m1VOnZa/lHp WPYYiSma0P3MWE6DoPQ/7gX4xXV/PryQNL0vcPkY3FRyAhiFw39+eODGerNs7eWqgbTz knOuLsn5pNl9+gBp9cERdYu76zEiX+0+f//KOpeSOFBEgQb147wAKKVTgRYDtsb3KW17 Ol1melwTC5/64/OTcrNlTmn7UJ7INwWMOryuJv/UTO2tTrlyLI+/KKSba3YDm/CH4pdO sAyA== 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=/wSbkkwawgKPbta1zkW9vqCbl1AsXFrP27iZvO6nPnQ=; b=gRy4A4NtGDBpbHsTnhP6+5gZtYIeg5fq0WBlSGNy9ZDdC0V/kBNgPlenk5plu8yL/3 D1ta4KYCzX+U7i8UsCVnO6wIXIBNh0IE6OVUIphRBvMh9LDXEbscsS4/Eej5ogTuE0U1 uRdO2W3O5UqggEQIg/IlCUwpw9Nhy87K/+aSVYNCNSSoAD1ZzOIVDSaUduNqFjZxTEHh YKxVoj27sJFdUgFEVeyAay2ieRMmZfPKo1tSCtqtOqSfZ0YMSja7WagYNcMb0lycQe15 waFFUnqevdEOieL2uVA4w6fB1NiRtfW7RdHFwWMHINydhuXQbnEODk9uj+vqhjXddLO4 EsJw== X-Gm-Message-State: APjAAAVrF/6imgVtORwRZRdc0VLQqwjFzUD2QYFg4yi8tOzdrBxcK4p0 Z2zk+sycboLa5bt8VNLpI/c= X-Received: by 2002:a17:90a:1b27:: with SMTP id q36mr13769936pjq.113.1569119914572; Sat, 21 Sep 2019 19:38:34 -0700 (PDT) Received: from localhost.localdomain ([207.148.65.56]) by smtp.gmail.com with ESMTPSA id p20sm5597047pgj.47.2019.09.21.19.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2019 19:38:33 -0700 (PDT) From: Changbin Du To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Jiri Olsa Cc: Alexander Shishkin , Namhyung Kim , linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH v2 0/2] perf: add support for logging debug messages to file Date: Sun, 22 Sep 2019 10:38:21 +0800 Message-Id: <20190922023823.12543-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. 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 | 14 ++-- tools/perf/util/debug.c | 106 ++++++++++++++++++------------ 2 files changed, 73 insertions(+), 47 deletions(-) -- 2.20.1