Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2985438ybc; Mon, 25 Nov 2019 07:16:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyxDie7AEsI2rCIMmk26o6uRGNjmRaa1A4TC1ad5YcCz2S5ucdpOvxxOtDVdkKAzZcq9Uy7 X-Received: by 2002:a5d:460b:: with SMTP id t11mr33177267wrq.185.1574694999738; Mon, 25 Nov 2019 07:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574694999; cv=none; d=google.com; s=arc-20160816; b=obVJsnXkJYmz8h0okj9Nl/yVsht5Lc+mulz49820qy/TlrwlVPw1I4VSVzg3WbU+vg MvGrffLskuyGyo4XLQG3rbaOGjCvJLRwswdWx0KA3ROim6mW9Wd1Hi3ZUtu5Rxl6O5XF vp8O8DGEiYB2Xn9LqP9heV86s/3S5/nn8xGmB+ZUe+1sEr4z+021CliSqnuRpSQEzcVw ccyrHXG6wMbsiBTInJGmR06eRv8wA0vJwGNNvK4aZFxyTm5BnLtN/hinkBYN9a0/i+ne e1nqJlsCrbtgBvT8iE5yl1QayRi30xMYaqk8G1qMLOiwmHPMTTbN2C3zYkD/0R5Af5i/ zcCQ== 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=D+cJWFYs7n1nVhuf5BK8dltsVU5DkvDssdrgSXpcEK4=; b=BFMmVfmBhhvlIcEPIXCH48qzSObWaKt1eAd2EsN3sRg0F9sHgC1vX5r4zZyKISQ9us Rx4tfWgukVAf6y7TUHijzl/k6zoe7QFoELCPy/BGgOg1PC7xPb3YFWHhT6g9JeZhpt8D dpwCmpanP/8ARQiRrEYWyPF0WGtGFRabAN9NLk2xk0lBnv/MAK8b0uvatJeH10MlgX1P vqBSn2twzZ8SW9vIZBEGZ81EeClBIFjEgi8zJWEqpLg3rkbcLMdbGYmBqGBGtG9Gld+V AQ3cC3bxcu3Nn4IeCChnbsem5E1YgPX7KYzJbVq98VZsy3ef+bR+OmKKva5IoU9QBadv acEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BoRaJPhi; 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 l5si5077920edv.108.2019.11.25.07.16.12; Mon, 25 Nov 2019 07:16:39 -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=BoRaJPhi; 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 S1728496AbfKYPPH (ORCPT + 99 others); Mon, 25 Nov 2019 10:15:07 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34003 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728025AbfKYPPH (ORCPT ); Mon, 25 Nov 2019 10:15:07 -0500 Received: by mail-pg1-f194.google.com with SMTP id z188so7346162pgb.1 for ; Mon, 25 Nov 2019 07:15:06 -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=D+cJWFYs7n1nVhuf5BK8dltsVU5DkvDssdrgSXpcEK4=; b=BoRaJPhiQXF5B6Wz6cZYg0IrobpS7DDokJG9m2HVnMwX3laL82jIeMaT0Jdc4ITM3X VgAZq6KkTE2nsZ11sj9FFZ8t7bo0hP/UI9lcT2FqB1d9jAHwQRubVACCd5/UWipn57+U EpZsdCjYEQJB4oaspLDybG3+3x9MOQr6Q9II5EWG9PLQ2NWTSt1tA+d0NtU+pdEv9Ocj 3mztFf5iXcFa2/ZlEBOnKFjQUDqy9Qw6gm8DBzvf9KwYV7aoNuq0r50LdOGLgT1yxRle KqLjxMKQMVXcKZQAFiI6SHFIGNnSr7SnzX9iGjs3ySFhIHG8s/B0YEDDCoOX7pRd+Sv/ W0ew== 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=D+cJWFYs7n1nVhuf5BK8dltsVU5DkvDssdrgSXpcEK4=; b=klLnaYuOXqBaXamvd/4/lQEJYY8hk41f00sJ2ti/+ajUFN9BKZoYwBVNKj097J6Ya4 iYVN2AdMJfDN9Orbbz1O/bwqOHcQw7toFbuh52iF4DI85KY5fKrAeNbLyaIiPkvMDpn6 fA26S2oUpu2i0sWw4ERnHSgkq9nEbwAubyBDswsIacpqAPjxKt/Ds8RNQZdudEtSS6Hc AjyejTIrpFIzaJXiKuAF4QE7qO0AdRVFQBNPHaHpQwpGyOqjUTMWWtOoB6yWQOCZQtP2 Hb3ludmgVgBenOW6MgzuDgCUAEQgDvNCHdhddXzyiQY2Wl8OPCp7qy98dyDrITyjCrgu K+Vw== X-Gm-Message-State: APjAAAWghl0aPcaam9BX8UO1LwssfhszfU8i+mBvz+P4Do7hexICWG7D ZFT4iD26rhmPxxewCM+FSpU= X-Received: by 2002:a65:6245:: with SMTP id q5mr33095490pgv.347.1574694906175; Mon, 25 Nov 2019 07:15:06 -0800 (PST) Received: from localhost.localdomain ([139.180.133.10]) by smtp.gmail.com with ESMTPSA id v17sm9334631pfc.41.2019.11.25.07.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 07:15:05 -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 v6 0/2] perf: add support for logging debug messages to file Date: Mon, 25 Nov 2019 23:14:44 +0800 Message-Id: <20191125151446.10948-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. 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 | 20 +++-- tools/perf/util/debug.c | 127 ++++++++++++++++++++---------- 2 files changed, 96 insertions(+), 51 deletions(-) -- 2.20.1