Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1298201ybg; Fri, 18 Oct 2019 15:26:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqztu2r9yONUYWzysiZqruz3NVwhQSZ/Sl1rZEE4zHWXXRsVY866/VdDQpd34NZ+DMZtDXsB X-Received: by 2002:a17:906:386:: with SMTP id b6mr10764097eja.148.1571437581829; Fri, 18 Oct 2019 15:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437581; cv=none; d=google.com; s=arc-20160816; b=ZOfyVjoV2a7CrSAE38ci84vRcoQoYpj+cNIuIJbJtBSbrcYrkWXWomTj1+oRxNMo8D YDeYqKJXIWi4KJIcZurlYjvHHQfQ9X4d6E0Ar3pnoU70dbwFb7h8n8S5I0sNZ7iG7oEU 2iew21FdcgBascBWQ08rleV2ZsNSXS2G+nRPLvJOtbedOdrt7lYDjhJKfG7MhpxFLvBI ci37LoheA5jw31peexeJPTgNJ3bC7WuFNfcwmJeCYxgGa78EmEYD1Pc3dLVNAbcpWdoB I4kLYXQ5kBMPwsMqGyJ8DsVOQsfoZy3PjwYTx49LWw0REL6sJYJ8XsvYmtQBZoYtcreI BY6A== 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=8NrXgXJZY222y3tTmyAGTvYq8mCRdP4iBc/fomM2DVk=; b=aXZhbddAT3oRYQFNJiJNV6WFgnHM7zL3SxGXNgqYXNqSYZ0PBi9v2hbWSSMuu/GdYF +eiuzywFKySyMNluTRFK0WgezeK11uSgSJ1GyK97PW/cbw3QZZuN8VsRD4Wyr5sUwkY6 h4tvY85914dpSvtI774ZPtIfR6AyEN+vZxv/4WMWH0lXQ0HNukf+R8vu4A1v76FQ4ie3 vxaX5mEivt+VRGHH5llv+fXcUA/FVYi47v6mhs3OySOo4TkupUrR6Gp/eEAxcsxivHgc 4srvVk6XmMTTLCInCu0vLUqAwKamhhhTzv5VfKH18PiyKDycX5Y9LDSloi536YL9Ti3E o8sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fa62tk3M; 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 x25si5065049edd.350.2019.10.18.15.25.58; Fri, 18 Oct 2019 15:26:21 -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=fa62tk3M; 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 S2392130AbfJRA2P (ORCPT + 99 others); Thu, 17 Oct 2019 20:28:15 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51889 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbfJRA2P (ORCPT ); Thu, 17 Oct 2019 20:28:15 -0400 Received: by mail-wm1-f67.google.com with SMTP id 7so4331530wme.1 for ; Thu, 17 Oct 2019 17:28:13 -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=8NrXgXJZY222y3tTmyAGTvYq8mCRdP4iBc/fomM2DVk=; b=fa62tk3MFVLXABWRGdL2LTQ/BrAfMWbpRfijB0brMR7Y1sAFftjZ4RFOAt3ocBBUhP NLRJ7WRD50R/mHbnxf3yum/2pJa4DCOElKitUpa5hyTz9+zPPg5D+U4gp7ntqRrmgX77 MrS7GgUwmcq8fpeJIOJaHya7OVgS7pD3DMV/IgYe/PCSgSGuT84YWlQSjsdra242Sw+A Hz4InP3HCaS5LS0NUug+TK5ux6cz37HHlLbtt4uEFdaAvY6vbcK0xg7x7UWlU8+XBvrW xRZ8mpnTGjsFU7Sc7gN38w/k6SC1tbTGRUBQrGol+NQUfhaEIKgxFi9Db7UUC7qanrZB xSYw== 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=8NrXgXJZY222y3tTmyAGTvYq8mCRdP4iBc/fomM2DVk=; b=bI2KUSACFasxNKSLrYZpcpAUkp4hihX6p6j0y/sJtgedso0vs0rQU/N5U3vXlPpYWe P/awG8yHO6QzZkJcywDQ8ghU2kUYXUmuSjAOEuXZCDKa8L/DYkkAyfSAB+7wlNfNEdq8 eY6I6Vsw77QvXa8ZYfZtlEHMFs0gzOYBMYyOIO2C45CQpUfMF9ZCWpePMz5CqoNhFull Gk3VR15bIqE8aR6g2P3EHcj6IDx1gIcO8iX2+EoUa9Tv1RedwCOliT5mC+q2wjMv3g8o O4lLI84626PwAZOiFoe5VgZfMUvnCIxC3Xcb20vAZopOGqoNp6NkGAQG2H+h8e6krwQm 5DJQ== X-Gm-Message-State: APjAAAWsw1nxVqGheELnWCwVaPHB0WjWvDRobcxO+66zprXbGw5yt6AI lzQ1FJlV5EWhktM6lq8DWmw= X-Received: by 2002:a1c:1d15:: with SMTP id d21mr5007300wmd.5.1571358493087; Thu, 17 Oct 2019 17:28:13 -0700 (PDT) Received: from localhost.localdomain ([104.238.174.53]) by smtp.gmail.com with ESMTPSA id p10sm4437649wrx.2.2019.10.17.17.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 17:28:11 -0700 (PDT) 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 v5 0/2] perf: add support for logging debug messages to file Date: Fri, 18 Oct 2019 08:27:55 +0800 Message-Id: <20191018002757.4112-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. 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 | 16 ++-- tools/perf/util/debug.c | 124 ++++++++++++++++++++---------- 2 files changed, 92 insertions(+), 48 deletions(-) -- 2.20.1