Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4413387ybg; Mon, 21 Oct 2019 08:37:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVAWnnO5dU1r4gyWLIW8yjUoGF4kn749uZrW4GUhvHRHZEzgW6UBqXSOtIO9rTFOod+p9w X-Received: by 2002:a17:906:1e55:: with SMTP id i21mr23219831ejj.47.1571672273371; Mon, 21 Oct 2019 08:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571672273; cv=none; d=google.com; s=arc-20160816; b=eGruHI/M5JAHFDmC+AfbRLvl8VjUv6vLNuBrAESQEvfLmtAXbJzFG8Qpea5rnToSQ9 Rlz+G+Yu6mGJemTtLxT+SfDCuzw+dU5/4ve2K6DdE/LlEyyIBBX2KILjQ5AkL/PEskb6 27I860lArUbXXDsT1pHrmQYhGhIr+poJjikTBG5stVEe4hU1Clv3F8WYpJHqkGznHb4x ioOxIhrhQ1zhC0w6T25bzCCa9ewApw1yYksJLor9sL7RAM5dJuHpUd2+U0LnFlRnsNXw YNW2NBg1WlQFSxUz2cL5sPOUqjAETShqUCpAcpngT5gKs4ij4n/0tadR0xURla075qA5 dxTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=fBVfYEnRP6BKVpKba3hVaFAPYINoX02AKPoKcyB89V0=; b=H0KsWk6argf+j93Gbr9vJS0bQDMr1z9pkaFYm3HWxg9qP25FpB18YX3vL0COtLZ5hh /+BK2IyjxohE3ChvKAOIEavfW1msQurIa4/6Ace7RHWBwIHb25vhvMyDA1CePK1HMsSQ RFWQilUcMWMlXL2MGMRTTqNEfNTWtuXDTeg1Z+W5of9C2Spo/05Wz108b9b+s38bU5Wh +z3w4n8eore7FoZ4e0gcn7A8B5PAo7Cq5C3dEl60yuXkEgrhRvJ+vYfOxKYnVvqgwvc9 QW69KqIgX7nhx/2koPt9w+JUXEBwxob5svizke159gP/efHT0z+fvYPqBd48hcJbFytk tLYA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u26si9774917edx.33.2019.10.21.08.37.30; Mon, 21 Oct 2019 08:37:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729339AbfJUPfQ (ORCPT + 99 others); Mon, 21 Oct 2019 11:35:16 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43758 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfJUPfP (ORCPT ); Mon, 21 Oct 2019 11:35:15 -0400 Received: by mail-wr1-f68.google.com with SMTP id c2so9290506wrr.10 for ; Mon, 21 Oct 2019 08:35:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fBVfYEnRP6BKVpKba3hVaFAPYINoX02AKPoKcyB89V0=; b=S2Bvu+3bQNlYnJlQf+CoM/RynyEM9bDn8sHnbubKeDpvFpnk6HJg2rD0S4CeJwuYYS bGxjDFC0X2BJgS3/vnTAbp+NbndMI1YMC7J6Kd8W+4J/Ng7P+G+zgS7udZPt+4C2Bw1J M7PZIPs/fAQ2Zg+XEZFZvc/sg2Qh6TJjpOxMmGPxMb99U200+q0NKfJ2vnbgylMr+3Vd zQF54nmgYC7uqFB05hKYIJQVlSwGJ6CSaONA8NaKC1HEHix7LKrXgSsM4d6uvu9283Wr SFE+mNyTVswmAxvnzMM1SGbYUuUWlEpSoizSh1u1gcZR3um5MSO4LelJ5IeEnBPaPsb+ osiQ== X-Gm-Message-State: APjAAAUAxRZNIjgPEhjUb0TW7TPSsR8qIKT/rb7nrZb4gDpfFYnOR0mE Zx6aqVEz18BGKtSm48uH2ptWOZs8/AS6v5LT5EEfPA== X-Received: by 2002:adf:fec3:: with SMTP id q3mr20350598wrs.343.1571672112665; Mon, 21 Oct 2019 08:35:12 -0700 (PDT) MIME-Version: 1.0 References: <20191018002757.4112-1-changbin.du@gmail.com> In-Reply-To: <20191018002757.4112-1-changbin.du@gmail.com> From: Namhyung Kim Date: Tue, 22 Oct 2019 00:35:01 +0900 Message-ID: Subject: Re: [PATCH v5 0/2] perf: add support for logging debug messages to file To: Changbin Du Cc: Jiri Olsa , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Oct 18, 2019 at 9:28 AM Changbin Du wrote: > > 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. I thought I implemented a debug message view in TUI mode by saving all the messages in a linked list. But it seems not sent to the list and I cannot find it now. :( Anyway I understand your concerns and the changes look ok to me, so Acked-by: Namhyung Kim Thanks Namhyung > > 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 >