Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6782929imu; Mon, 21 Jan 2019 16:03:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4uKpE1Ji64omlcSUGsFemgSZh9wuefs+L/TIQevs1cd11JtxocwAtrIQZJsbM6ckBd4qtx X-Received: by 2002:a63:c64f:: with SMTP id x15mr29274640pgg.16.1548115395965; Mon, 21 Jan 2019 16:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548115395; cv=none; d=google.com; s=arc-20160816; b=AFYese3qMAONZ5aFN0IbnQtd6xFP3aGk9+5/VeSwb2OofVnXZkWO9sMPzKbyq4V/kX 69+v9X4iXqJn7lYLxUZf05MNM5e+HGY96ynoLywaOtPlA0rSY/AtvTsNrItkOLjFWrkj wivXeIAYPsNRMqWILYV29ke9GED7/y+feVxf7Zp6G9AkNSXsbEHpwMbIyk3ZU0ofHY/w JQ6YKFph0CJA8Kl7/MAr1x9FACjXHHAy8b+tm+mLTd5ndceH++Nxh/kKaYw8YeUea5QR TmHcOY8JVWDnNGaxyim8e907Ur9Iicg4Zp+Viz+KF/HHhNwt60x6ZMHFDTtCECzcBOnO KAxA== 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:dkim-signature; bh=0EKBi6IatfD4IcfcLVlzpKKlQdPqXS5r6Cgbdv27UQE=; b=BkPPAX4dcHby2+EUOdDWwz7f1HLOpE0WqSCgGZCHmJYLcBgCQCdM+SYly7RslPmiO/ g/nt33QCV3se8ghIwkZMQ3ZkYh6o++l2tov2RJ/nGwI6fbw4NsmSEL2Gpgtk9cz7LH0L PW7pVgQPm6auNODaj/AP+B66BGygs3oUN23QD1mkb8BO2hBHBS6ZSMVEHTbOp1o0ZZdd pKXTBQ5cOKSDt/GIXyd1e9HMqR9LCKgBVNa12+bOPrO26p7nXm4fVlGdkmqZrr4daNnF zvXiOlAXBpMLoysEp2IeWCJ9luaF0eUFFYo44fUkhHINBJ2WpoCF0irsAdRtzrvy/0Gf 3Aqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HV+ayXf9; 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=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 ce19si14793503plb.13.2019.01.21.16.03.00; Mon, 21 Jan 2019 16:03:15 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HV+ayXf9; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726125AbfAVABQ (ORCPT + 99 others); Mon, 21 Jan 2019 19:01:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:32900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfAVABQ (ORCPT ); Mon, 21 Jan 2019 19:01:16 -0500 Received: from quaco.ghostprotocols.net (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2546821721; Tue, 22 Jan 2019 00:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548115275; bh=4MP2XCG3H0jxOasSELBd4wiJJ7yDbp3urMml6O4/uQc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HV+ayXf9tOEVGJHJ/sy8T8u923hy5QoKmX27a7ZPYU/1KuD+IOGsfxbFOcVqhUsyR 2rRVmbaGJ290HKe0+2yfh9nO98GUXOQdDbDmoRj9ETExJQvZvWa0iwt+0mU/xMpcsh pixTIgDAtbW2rBYhoun2Ld+/f4En2UhLtryCJzcs= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id DDFD540355; Mon, 21 Jan 2019 21:01:11 -0300 (-03) Date: Mon, 21 Jan 2019 21:01:11 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Thomas Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCHv2 1/3] perf report: Display s390 diagnostic counter sets Message-ID: <20190122000111.GE20269@kernel.org> References: <20190117093003.96287-1-tmricht@linux.ibm.com> <20190117093003.96287-2-tmricht@linux.ibm.com> <20190117140053.GJ11922@kernel.org> <20190120181814.GB8591@krava> <20190121131336.GC3852@krava> <20190121141748.GC15707@kernel.org> <20190121183437.GB11396@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190121183437.GB11396@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Jan 21, 2019 at 07:34:37PM +0100, Jiri Olsa escreveu: > On Mon, Jan 21, 2019 at 11:17:48AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jan 21, 2019 at 02:13:36PM +0100, Jiri Olsa escreveu: > > > On Sun, Jan 20, 2019 at 07:18:14PM +0100, Jiri Olsa wrote: > > > > On Thu, Jan 17, 2019 at 11:00:53AM -0300, Arnaldo Carvalho de Melo wrote: > > > > > > > > SNIP > > > > > > > > > --- a/tools/perf/util/python-ext-sources > > > > > +++ b/tools/perf/util/python-ext-sources > > > > > @@ -25,6 +25,7 @@ util/parse-branch-options.c > > > > > util/rblist.c > > > > > util/counts.c > > > > > util/print_binary.c > > > > > +util/s390-sample-raw.c > > > > > util/strlist.c > > > > > util/trace-event.c > > > > > ../lib/rbtree.c > > > > > > > > hi, > > > > this change breaks the python module: > > > > > > > > >>> import perf > > > > Traceback (most recent call last): > > > > File "", line 1, in > > > > ImportError: ./perf.so: undefined symbol: color_fprintf > > > > > > > > changelog doesn't say anything about python related change > > > > > > I made some chenages and movedthat raw sample code > > > under s390.. which cured the python module, but > > > I haven't tested it on s390. > > > > Nope, I explicitely asked him to build that code for all arches, as we > > want to process s390 perf.data files on a x86 or arm or any other arch. > > > > aah, so this actualy works over the s390 perf archive data on x86 host? > > I missed that in the original conversation, sry for noise np, I fixed my mistake by making this be done on perf_session__new(), right after creating the evlist, this way these arch specific bits, needed only for dumping the raw sample, do not get dragged via evlist.c into the perf binding :-) - Arnaldo > jirka > > > I stumbled on this as well, I think the way to go is to get the > > color_fprintf bits in a separate object to avoid dragging more stuff to > > the perf binding set of objects and then add that to the python binding. > > > > > Could you please check if code in here works for you: > > > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > > > perf/s390 > > > > > > if it works, I'll post it > > > > > > thanks, > > > jirka > > > > -- > > > > - Arnaldo -- - Arnaldo