Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1911130imu; Thu, 17 Jan 2019 05:25:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4RdqYS/0MOKjJM0kB4++ufk0mAo3Vp0nrrCLzacxDVsHizJ5ap6juOrZSDt+sVeWgJf3w4 X-Received: by 2002:a63:7b06:: with SMTP id w6mr13443471pgc.288.1547731516286; Thu, 17 Jan 2019 05:25:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547731516; cv=none; d=google.com; s=arc-20160816; b=Xi8sHdc9JnMzCM92HXHCjpELWurzrXF2HqDR+TNdKEiAG7ewuiDD3oALvdq/0O8mda Y4+aCElriLucyQe16J20/rlFtlacDpKG2GaNjiRInIKwI97Aq60uxdMbyYAzuJSEidsa Dce7YS4XnaovGTzq0Q/up60JtvHpmSM/PEFhud0GNXnUL+JgTjvYGQVeF7uKvYh8TDSv b9nLUaiwtTzxCucomjqolnbfCZaCLFVahhq0LfIzRhzq/Q4k3mD1ePNrlh+vmvUXWvuu H0CthW1LWVAxD5bu80BR7BFLKWRNmdlnnu2kLGmpnJws/iEpED+sGsvGjFFzFM8JWYM/ /k6g== 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=qZrqWDe7IVGQofTBSXke1P3kVevJhCKhX64nFJ1Y/8c=; b=O1pt4eV5cenlESDIcxE8MLqNb4+EnsYnvESSkWH8YK5aaigWuV0CmurLu9aeIAjHO1 1evOR2j19YXjCIvT4OOPUHjmkIikZTGR5JtQZrDRS7Nk3C7+/ZvCNWViKSU3Kg5HiK23 w6sLmPXsvil1LG7VzGz4lUsMg0k5gGJ71Xd53GLSZ1qJoA3D+OyjK6e5YtTBTnRT5lx8 Fm3879AXJ+8CIiTZeE1pG4EDzgi3iNUzkpj2cj6p4bM7PbUa8yUjyA/Z08VZhuUqlNXV gY+siu2BmoTIb72jWrfmMYr/dGJSUlEdMQn1h26BKX2RYQU4pCk2+OGG/K0tJKomKlHC sYVw== 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 t77si1652455pgb.51.2019.01.17.05.24.59; Thu, 17 Jan 2019 05:25:16 -0800 (PST) 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 S1727412AbfAQMcF (ORCPT + 99 others); Thu, 17 Jan 2019 07:32:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50080 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbfAQMcF (ORCPT ); Thu, 17 Jan 2019 07:32:05 -0500 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 E0B2F4E93F; Thu, 17 Jan 2019 12:32:04 +0000 (UTC) Received: from krava (unknown [10.43.17.222]) by smtp.corp.redhat.com (Postfix) with SMTP id 56E2460D27; Thu, 17 Jan 2019 12:32:03 +0000 (UTC) Date: Thu, 17 Jan 2019 13:32:02 +0100 From: Jiri Olsa To: Seeteena Thoufeek Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] perf scripts python: Add Python 3 support to check-perf-trace.py Message-ID: <20190117123202.GC16366@krava> References: <1547718344-27382-1-git-send-email-s1seetee@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547718344-27382-1-git-send-email-s1seetee@linux.vnet.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 17 Jan 2019 12:32:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 03:15:28PM +0530, Seeteena Thoufeek wrote: > Support both Python 2 and Python 3 in check-perf-trace.py. > ``print`` is now a function rather than a statement. This should have > no functional change. > > Fix indentation issue, replace spaces with tab > > Signed-off-by: Seeteena Thoufeek > Reviewed-by: Ravi Bangoria hum, could you please add some info about testing those changes? (or even some global into 0/.. patch) this is working for me on python2: [root@krava perf]# perf script rec check-perf-trace ^C [root@krava perf]# perf script -s scripts/python/check-perf-trace.py trace_begin unhandled events: event count ---------------------------------------- ----------- raw_syscalls__sys_enter 3509879 but fails for python3: [root@ibm-x3650m4-01-vm-04 perf]# perf script rec check-perf-trace ^C[ perf record: Woken up 0 times to write data ] Warning: 1 out of order events recorded. [ perf record: Captured and wrote 43.132 MB perf.data (490171 samples) ] [root@ibm-x3650m4-01-vm-04 perf]# perf script -s scripts/python/check-perf-trace.py Traceback (most recent call last): File "scripts/python/check-perf-trace.py", line 18, in from perf_trace_context import * ModuleNotFoundError: No module named 'perf_trace_context' Error running python script scripts/python/check-perf-trace.py I did not test with rpm, just did 'make install' for perf thanks, jirka