Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp557540ybp; Fri, 4 Oct 2019 00:59:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0ZVHwx8Zs+CdSpcJJ9lhIjlYV7T1uEgatT8QxnhCPhwITNW7zv8TCeQBJkiSt8tN8/3kz X-Received: by 2002:a50:f19c:: with SMTP id x28mr13578755edl.42.1570175973728; Fri, 04 Oct 2019 00:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570175973; cv=none; d=google.com; s=arc-20160816; b=CPOEvQtBN84Xpv3qJAfkAyLaHeecsBkmrc2i1ddl7RrH3icV4tEdk3ktBRI794LU7V 1VwpBe0ccu1B+vnT4h4urV5PdVJjhF+oM+2e1brSRc5jyIWHJGQTjShMdPvnLFgbhBCv c1m4mTmhGZLK+x+IhZ3nyLbYDyLm89E1aTSrYSIVtF/tWnJNT8pwU7ZKxUtKyPY5fN19 JnBDsKxRhEiBM3C2eh3V0VH0TAIEsJSNw2lk9zDIj7x1Eie0xhLrD9m+7wfRNsiKNEEF eucfGaKmCs6c/i6BVKNkECF5O3VjRksPrRQSQNeVxsAui8PktYmjW0MBhTt1bXSfpDgn gHDg== 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=IDoiJmGYUtzjrwlsrPKBXvV3pN04b8p2t0+TxXOg3HU=; b=EmG7NTQcNxMB+lQANziqOpxP5KafZTj+8AZPqg/KvMBftF5boqskLl57n53Yms/T28 asLAxOCZqzvozOw5WbI2IGUwkTubEPYeSRS95cXhI9+H3XI3jba1DYJAMTJaixwWMrqO DG1Gz6EF3fAJCjwGxpZjGZAT0wuk1FqW+LD6/4W/Y25C9XFapHO44hREukw5dw/yiIad 7qfo/nLO/goya0GoE18LTEao9YmYy6Rr63in0pF/I/ONtXkYZvbYCkBTB4Ocqg6ZQ97N SiNAQE6Ie7tfsrn5qNUVBlRDQJScEIkj6wW9OlZQaMaiU/iFIkD7ZHKNzVb8tkCFZ/z6 YuDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WN5ZrlCj; 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 y47si2985998edd.236.2019.10.04.00.59.09; Fri, 04 Oct 2019 00:59:33 -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=WN5ZrlCj; 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 S1732006AbfJDCkM (ORCPT + 99 others); Thu, 3 Oct 2019 22:40:12 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41589 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbfJDCkM (ORCPT ); Thu, 3 Oct 2019 22:40:12 -0400 Received: by mail-wr1-f66.google.com with SMTP id q9so5093698wrm.8 for ; Thu, 03 Oct 2019 19:40:10 -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=IDoiJmGYUtzjrwlsrPKBXvV3pN04b8p2t0+TxXOg3HU=; b=WN5ZrlCj3o5nlTV/c2/kkesRdrJy7SAKPf2UmYyxFrXEAtZG/ODrfgvx26WlhhpFz2 aKnkzr9kd8Zb5gRKMBbKguKxqKEvMc0Cxa92yDz3dHQtAI2GOYgzJu8NheCeXpnv8/jH QiVKoHvxhunoxex348iadQyG13yEzRefUXLUdinhPz1bbhIuQo1bqA6W2EaIkFsnvmxw cD4ZHS9rjGAE1oyrCrCl19Ul80y0g7K1kRg9DNGWML89YlpIt7lSQxisZq5Ux4PB9db5 rPsBPQNe5tdDkZ1sJTxSf+eHObjKbY7hT1rarvgkA2tm1chdPC8w7iFh2gA7FviEEp7l C+FA== 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=IDoiJmGYUtzjrwlsrPKBXvV3pN04b8p2t0+TxXOg3HU=; b=lMHmMJs3u2lrE1DA6K7NWFo4HylgqeHs9gM7C4kVFOD+qTBZ5XGIVVZjHyZLbw/HId Bm+/EEzPu4iMxKNqN5/MhLmmM0O+TotMQ4PyGDjBf00/yEmoZtY+H+mjhHE/30mtObQR fU/lUAvbahPMJvQDn3PFyjFlyz9mHdHSJf/ZNx/GO4Csrsl68PCVcPdIXsUxf1mZ5jas HcLLC91vya6rTkA/Azy2m3Y2dBmJnO8dAIrI8VopnLCZM6M38jWV+CQ8QopK1tQ6QBzq 8ZaFKljaLKBMIsRTA3bYyHmF2bvALXuxtfBe4H+3q50QghVwA+y/GNUBtjlujwi4Lc5j EA/A== X-Gm-Message-State: APjAAAUZwb4tiCsuL+XfjKT8BZtG5fHX39mjOQjm37kNFtaEAOPIpen5 KhrjMcwk+jBLsTTVvMs42ww= X-Received: by 2002:adf:eb42:: with SMTP id u2mr9364825wrn.307.1570156810268; Thu, 03 Oct 2019 19:40:10 -0700 (PDT) Received: from localhost.localdomain ([104.238.174.53]) by smtp.gmail.com with ESMTPSA id o19sm7447776wmh.27.2019.10.03.19.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 19:40:09 -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 v3 0/2] perf: add support for logging debug messages to file Date: Fri, 4 Oct 2019 10:39:52 +0800 Message-Id: <20191004023954.1116-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. 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 | 15 ++-- tools/perf/util/debug.c | 124 +++++++++++++++++++----------- 2 files changed, 90 insertions(+), 49 deletions(-) -- 2.20.1