Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp952418ybm; Wed, 22 May 2019 14:33:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxv0tx8Gz0+9mETebwPKASf3hZ3nuH6nG8HWE+rDLSSxlqH/1Q5lGpIubSW9NVLS6J3TK5 X-Received: by 2002:a63:471d:: with SMTP id u29mr91949782pga.39.1558560817856; Wed, 22 May 2019 14:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558560817; cv=none; d=google.com; s=arc-20160816; b=IKv7gBDLJI2RnV/U9CPYuCoxG/bvTF6KeBaMzI8tjDVFC2k7wWHZL9Oh02vfT5YB3B hmBLBbiODJ2LO4D9RicnqLAc7/ELN5TPzRVrw9rWukn521d1LA4Z51l6dKNLlgqE3tXh 6ADPWv3eunMtX/t2UtBJgzzFiV4GrlKvTriNguK5iFYRyiwvW/Ginx7Y4qnuInDlxibl eMtM16cObfjKXgN7X0arGiCbtsptrYEGjwpjEUhiHs1l9BstB1RJMPbHfodbu5sPbQWR GpsBLdSJt7/XMgRCO69wNQwEmdR6ai8srJTSWrbRNgD10UyhaUBW5Vu5ahmH99YLFicg oMLA== 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=dJiwL87Wiv4kb5PbGW/Cfyuz9YbvSlqyBYHvt6Ao9Bg=; b=jjefOqz86LVYQjWpwmpGp0EKPp5/4Di0b+nFJzTBS9Y1Rtk0T3xmfJ6pYq+lJ3YaQR TVroi/xujPUtOPy3KOAkFiVZQLUhwpOCV00/7pVrFNZKFMmJZ19xAQ6z8dqNWw7vnWnX uWfqZFHfuAV/dxWuNdt1dO/F38nQmNkcXrMnUz975TXnj0iCYeeXZyV40Xcb2PZ0xSd6 Z7Mddp848w30lHgaIAUxBDye+3dUJJ/JZqhPotlQsEDYuVbtRMbc8rYSjl15bR2q2UDI vpzKMrSAJ46OEsY0GHIiT6BIwCfsM8f7RhTY05fe0xDBrhhoT9VMAkdOENkPIBI4hkg0 vs3A== 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 k23si22833933pls.88.2019.05.22.14.33.22; Wed, 22 May 2019 14:33:37 -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 S1730584AbfEVVab (ORCPT + 99 others); Wed, 22 May 2019 17:30:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48346 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729896AbfEVVaa (ORCPT ); Wed, 22 May 2019 17:30:30 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7C6723082A28; Wed, 22 May 2019 21:30:30 +0000 (UTC) Received: from krava (ovpn-204-104.brq.redhat.com [10.40.204.104]) by smtp.corp.redhat.com (Postfix) with SMTP id A56891001DE0; Wed, 22 May 2019 21:30:27 +0000 (UTC) Date: Wed, 22 May 2019 23:30:26 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Stanislav Fomichev , Song Liu , Adrian Hunter , Andi Kleen , Thomas Richter Subject: Re: [PATCH 12/12] perf script: Add --show-all-events option Message-ID: <20190522213026.GB11325@krava> References: <20190508132010.14512-1-jolsa@kernel.org> <20190508132010.14512-13-jolsa@kernel.org> <20190522161804.GG30271@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190522161804.GG30271@kernel.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 22 May 2019 21:30:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 01:18:04PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, May 08, 2019 at 03:20:10PM +0200, Jiri Olsa escreveu: > > Adding --show-all-events option to show all > > side-bad events with single option, like: > > > > $ perf script --show-all-events > > swapper 0 [000] 0.000000: PERF_RECORD_MMAP -1/0: [0xffffffffa6000000(0xc00e41) @ 0xffffffffa6000000]: x [kernel.kallsyms]_text > > ... > > swapper 0 [000] 0.000000: PERF_RECORD_KSYMBOL addr ffffffffc01bc362 len 229 type 1 flags 0x0 name bpf_prog_7be49e3934a125ba > > swapper 0 [000] 0.000000: PERF_RECORD_BPF_EVENT type 1, flags 0, id 29 > > ... > > swapper 0 [000] 0.000000: PERF_RECORD_FORK(1:1):(0:0) > > systemd 0 [000] 0.000000: PERF_RECORD_COMM: systemd:1/1 > > ... > > swapper 0 [000] 63587.039518: 1 cycles: ffffffffa60698b4 [unknown] ([kernel.kallsyms]) > > swapper 0 [000] 63587.039522: 1 cycles: ffffffffa60698b4 [unknown] ([kernel.kallsyms]) > > Strange: > > [root@quaco pt]# > [root@quaco pt]# perf evlist -v > intel_pt//ku: type: 8, size: 112, config: 0x300e601, { sample_period, sample_freq }: 1, sample_type: IP|TID|TIME|CPU|IDENTIFIER, read_format: ID, disabled: 1, inherit: 1, exclude_hv: 1, sample_id_all: 1 > dummy:u: type: 1, size: 112, config: 0x9, { sample_period, sample_freq }: 1, sample_type: IP|TID|TIME|CPU|IDENTIFIER, read_format: ID, inherit: 1, exclude_kernel: 1, exclude_hv: 1, mmap: 1, comm: 1, task: 1, sample_id_all: 1, mmap2: 1, comm_exec: 1, context_switch: 1, ksymbol: 1, bpf_event: 1 > [root@quaco pt]# > > Then: > > [root@quaco pt]# perf script --show-bpf-events | head > 0 PERF_RECORD_KSYMBOL addr ffffffffc029a6c3 len 229 type 1 flags 0x0 name bpf_prog_7be49e3934a125ba > 0 PERF_RECORD_BPF_EVENT type 1, flags 0, id 47 > 0 PERF_RECORD_KSYMBOL addr ffffffffc029c1ae len 229 type 1 flags 0x0 name bpf_prog_2a142ef67aaad174 > 0 PERF_RECORD_BPF_EVENT type 1, flags 0, id 48 > 0 PERF_RECORD_KSYMBOL addr ffffffffc02ddd1c len 229 type 1 flags 0x0 name bpf_prog_7be49e3934a125ba > 0 PERF_RECORD_BPF_EVENT type 1, flags 0, id 49 > 0 PERF_RECORD_KSYMBOL addr ffffffffc02dfc11 len 229 type 1 flags 0x0 name bpf_prog_2a142ef67aaad174 > 0 PERF_RECORD_BPF_EVENT type 1, flags 0, id 50 > 0 PERF_RECORD_KSYMBOL addr ffffffffc045da0a len 229 type 1 flags 0x0 name bpf_prog_7be49e3934a125ba > 0 PERF_RECORD_BPF_EVENT type 1, flags 0, id 51 > [root@quaco pt]# > > But: > > [root@quaco pt]# perf script --show-all-events | head > Intel Processor Trace requires ordered events > 0x2a0 [0x60]: failed to process type: 1 [Invalid argument] > [root@quaco pt]# hum, so round events disable ordering, which is required by pt if (script->show_round_events) { script->tool.ordered_events = false; .. so the --show-round-events option always fails on intel_pt data: [jolsa@krava perf]$ ./perf script --show-round-events Intel Processor Trace requires ordered events 0x2e8 [0x38]: failed to process type: 3 [Invalid argument] > > So I have all patches but this last one, will test and push Ingo's way > so that we make progress, we can get this one later after we figure this > out. thanks, jirka