Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5558986ybn; Sun, 29 Sep 2019 00:45:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4zwTfeSwWsZDD83lLePs6BllugizoRgmFSUZqTKgSsrQJlO5zLed5OkgTVTD6NWQEffIq X-Received: by 2002:a17:906:3615:: with SMTP id q21mr14346681ejb.201.1569743154942; Sun, 29 Sep 2019 00:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569743154; cv=none; d=google.com; s=arc-20160816; b=n2h2BKLaVwSDv7iHaYGw3MVfJcIWBHhnvRlMRSmfQmrlqFTpEoyguP10gckTTzHWYM sIMfy00Qf1zT1BTstBHYG8LMH3b+iMP2O75YbmbFF/rPmxWnu0fpeST1gx7ypa0P2Wwj JOMoh91Ol6eJ7LftikUVO9dJ3uLZFki31tWcnH5ca5IQGAbC8EPJb80ohBoWM1QKjE0J /2qQ89vEuyzCtHQgI8HZRw0ggFKRZLnGLGYueDiuYzPJKD2fKLqSr1O1GG4tPH2+HsWW 6pP3h38Nc2EmcI/MlvgVKrXUi1rpm2lIKVBiCldkO0QiLaV6d0yN9i7TsssjIyW8++5a 5jBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DktS24+w2ripdEXKzm0RQTbwA2BnMmQtzfcMlJ+kjnI=; b=SHAfdfLqa0PK3ZYjIvi65udxFC03dNS3nguVikCAWX6e6Z6hl55RQFdRmcpgkkdTIJ NfZQG1PouqzrR98617REWaTLUWMNAXGnON25whrxhq3Fhw8WtxpU0S0A6bG+6/IR+Q+b Zp6pLA/ujuL5CnfBTnu3ZjztgaYlZ8CMKsOEFflmEAdjS4F07nLPWzJgd+C77B1oI3dM tjCe3A+JYEJ/IH3KPL2jzFMmBQrV4gh5x57B3yh15HkwM47K6y8wpLMFLCgEL5PROiYB JthC+qQ9XKg3ZXInz7R6i71vjxRHMhPKYYE1FhY4w4VUHArm69c2W1Gi33GGlNF+4T1O ScOQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13si5469873edw.357.2019.09.29.00.45.30; Sun, 29 Sep 2019 00:45:54 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726076AbfI2HoM (ORCPT + 99 others); Sun, 29 Sep 2019 03:44:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55326 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbfI2HoM (ORCPT ); Sun, 29 Sep 2019 03:44:12 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E0A4218C4262; Sun, 29 Sep 2019 07:44:11 +0000 (UTC) Received: from krava (ovpn-204-44.brq.redhat.com [10.40.204.44]) by smtp.corp.redhat.com (Postfix) with SMTP id 89BBF643C1; Sun, 29 Sep 2019 07:44:08 +0000 (UTC) Date: Sun, 29 Sep 2019 09:44:07 +0200 From: Jiri Olsa To: Changbin Du Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Namhyung Kim , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] perf: add support for logging debug messages to file Message-ID: <20190929073951.GA15099@krava.homenet.telecomitalia.it> References: <20190922023823.12543-1-changbin.du@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190922023823.12543-1-changbin.du@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Sun, 29 Sep 2019 07:44:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 22, 2019 at 10:38:21AM +0800, 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. > > 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 hi, getting segfault with: [jolsa@krava perf]$ ./perf --debug verbose=2,file report build id event received for [kernel.kallsyms]: bf6ca14c03795fd67b4d88113681ba4af2b8c18a Segmentation fault (core dumped) jirka > > tools/perf/Documentation/perf.txt | 14 ++-- > tools/perf/util/debug.c | 106 ++++++++++++++++++------------ > 2 files changed, 73 insertions(+), 47 deletions(-) > > -- > 2.20.1 >