Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp987000imm; Wed, 8 Aug 2018 08:54:40 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwMFrj+x4Bp/gCDrhCwnqbWtd2Ah+mqc4lb60aQ3SYFIPaTihz/gA2vTbwv6rl/dREy9+vq X-Received: by 2002:a63:6fcc:: with SMTP id k195-v6mr3085216pgc.135.1533743680746; Wed, 08 Aug 2018 08:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533743680; cv=none; d=google.com; s=arc-20160816; b=S2wF0/qMwFWDblJWQ5D0VtBUfh94Tm/nauwiIGSC+gwJvGS3ALbFdyM22pWsDtYgFQ KkFJq4iIfvdzEulIjlRxniYYI7YBzPqb7f2Z63CquMmF6jpU67hfFpqvdV1ah5c4ajaW 32/xZE/rjezqWTiIrU1rAfyS0v3VHODD+CheuL9Hr7u2PIeG4VjcHzfcahK3Ne597UWp AS+XAGWe8jZBcTz4knE6U1wM8YNo2TrALbuH/k50liZP0e1MqNAiSIgAJPL895OnwwOH nksjV0YbJmYloZ5xpPshtvUOUjx46q6jNB0Y5jocRGXSd/j3h5TrTJuDD21VAZr6UZPK bkmw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=xafc+nvs13H0IW/vPkdmi+71RQ4jD/ZBTD8TyASbhiU=; b=IcswX2xKX1Mwp5/jK4zo+IDY66kXiywJo+gRH9CN03pbXHR21dQrKEG6Opw1VNYbHO xvLLtT/vJb1bs6g3OgLF2Oiiy8/B9R9dKrhC0WxW2Htn68N5QOpSNxWaIptXnLpyWZ+s eZ1prOStOf02zm56Mang+S9rhm3FJ6LqWYyeIgWeg20a/ZcvHnTtaYER933lwrmv0xA7 3Y/Ek3RllqZFAfxUg78Q/ygafaRwvz6wIYK2OaD3I4dBOzQT+m9CLSc5jw7m/Ka8PjfB kc+LQaGnRtucdop05L+IyUKuTSztz4hGOCaYf44f+jQ095/S4nmudhqQRD1ulLo5/7Nt LKzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RFH6Fsds; 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 z18-v6si4697946pgg.332.2018.08.08.08.54.26; Wed, 08 Aug 2018 08:54:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=RFH6Fsds; 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 S1727867AbeHHSNr (ORCPT + 99 others); Wed, 8 Aug 2018 14:13:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:36236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbeHHSNr (ORCPT ); Wed, 8 Aug 2018 14:13:47 -0400 Received: from jouet.infradead.org (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 B77D5216E6; Wed, 8 Aug 2018 15:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533743611; bh=LYF3Ue+eK0o+u9T04YM57Lc2zy2d/B4GWEn+SbLWFnI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RFH6FsdsbxsRNwJHIFzl3o+h5f61Bouncr8e/fbAC0LWzRH4/oBgdlQpwwPFEOQRy vBB29TPz6Qt8idbR66XMnRhr6PAdK/bF5WupC5GGEmNlzzrKe0kqjoY+tfnsGc8y4v oyzH3GZoD1TAqy0e6SSogGIDWDLBRg2FWjlrL8FU= Received: by jouet.infradead.org (Postfix, from userid 1000) id 7C8E8140A1C; Wed, 8 Aug 2018 12:53:28 -0300 (-03) Date: Wed, 8 Aug 2018 12:53:28 -0300 From: Arnaldo Carvalho de Melo To: Thomas-Mich Richter Cc: mpe@ellerman.id.au, 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: [PATCH 2/3] perf report: Add raw report support for s390 auxiliary trace Message-ID: <20180808155328.GA9543@kernel.org> References: <20180802074622.13641-1-tmricht@linux.ibm.com> <20180802074622.13641-3-tmricht@linux.ibm.com> <87r2j9bkax.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Aug 08, 2018 at 08:39:58AM +0200, Thomas-Mich Richter escreveu: > On 08/08/2018 05:37 AM, mpe@ellerman.id.au wrote: > > Thomas Richter writes: > >> Add support for s390 auxiliary trace support. > >> Use 'perf record -e rbd000' to create the perf.data file. > >> The event also has the symbolic name SF_CYCLES_BASIC_DIAG, > >> using 'perf record -e SF_CYCLES_BASIC_DIAG' is equivalent. > > ... > >> > >> Signed-off-by: Thomas Richter > >> Reviewed-by: Hendrik Brueckner > >> --- > >> tools/perf/util/s390-cpumsf-kernel.h | 71 ++++++++ > >> tools/perf/util/s390-cpumsf.c | 244 ++++++++++++++++++++++++++- > >> 2 files changed, 314 insertions(+), 1 deletion(-) > >> create mode 100644 tools/perf/util/s390-cpumsf-kernel.h > > > > > > I'm seeing a build break on ppc64le which seems to be caused by this > > commit (I haven't bisected): > > > > util/s390-cpumsf.c: In function ‘trailer_timestamp’: > > util/s390-cpumsf.c:222:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] > > return *((unsigned long long *) &te->timestamp[te->t]); > > ^ > > > > > > And on powerpc big endian: > > In file included from util/cpumap.h:10:0, > > from util/s390-cpumsf.c:150: > > util/s390-cpumsf.c: In function ‘s390_cpumsf_basic_show’: > > util/s390-cpumsf.c:187:10: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Werror=format=] > > pr_err("Invalid AUX trace basic entry [%#08lx]\n", pos); > > ^ > > > > cheers > > > > Can you please try this patch. Thanks a lot Ok, this was making the build fail as well on some containers here: 1 37.95 alpine:3.4 : gcc (Alpine 5.3.0) 5.3.0 CC /tmp/build/perf/util/s390-cpumsf.o LD /tmp/build/perf/util/scripting-engines/libperf-in.o CC /tmp/build/perf/util/parse-branch-options.o CC /tmp/build/perf/util/dump-insn.o util/s390-cpumsf.c: In function 'trailer_timestamp': util/s390-cpumsf.c:222:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] return *((unsigned long long *) &te->timestamp[te->t]); ^ 2 48.46 alpine:3.5 : gcc (Alpine 6.2.1) 6.2.1 20160822 CC /tmp/build/perf/util/parse-branch-options.o util/s390-cpumsf.c: In function 'trailer_timestamp': util/s390-cpumsf.c:222:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] return *((unsigned long long *) &te->timestamp[te->t]); ^~~~~~ CC /tmp/build/perf/util/dump-insn.o --------- I stopped at this point when this report/patch resurfaced in my mind, so I came back and folded this fix into the cset introducing the problem since it hasn't gone Ingo's way, so that we can keep this bisectable when upstream. Thanks guys! - Arnaldo