Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7587069rwl; Thu, 23 Mar 2023 06:23:45 -0700 (PDT) X-Google-Smtp-Source: AK7set89ybjyoBddoJf4z39rurKi5frGQQo4AbhByz8tOkAmSGwp2u+lSB7hfAe9NDkfePl/X5qn X-Received: by 2002:a17:906:22d2:b0:925:f788:d76d with SMTP id q18-20020a17090622d200b00925f788d76dmr11384944eja.27.1679577825117; Thu, 23 Mar 2023 06:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679577825; cv=none; d=google.com; s=arc-20160816; b=jYnn4EJldLGnMXoErLYuaZ1p2QG1nqM91D7unZKMfIIMy1H6zk40sEjxTQdLw0I4be lmseZhu6coL4/7VVdlEtGf387HpjJvcVslqKd5OviIvwmO3t0kMrx9Gg4iTgBvUO3wpO uPptdPO3s9P1YpRqfuq+Eh9/k2aPLrxlMhdprQWWoxJfcxeIzkPs4SmGhFHO3vPhnNol efSpppmc3u0oStkOREBD8EP1iI0V77M9fzLNssdZ3Cfd6RbJe7jxom8hxXSw8XLkFQPW gnWw3UZcbZMBL0vDwaQnVAheWN8e3edOiKyE6JkBscVkJMyrPrX8wHNrvc+IiXn/o/vM I+rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=451wOxgTCGLaHw+g54pjaUhdiceDnODdYvQaBys8XpE=; b=pDxM1BtfzVHpnzaLGImEJZLjAOBbPUYs6mP48rp6HbUXYLLIIOkwcA42+dCYyT0Swd e/Pau7L1pzXFQYQf9me9pO0DuXM1LT70nni4m29XKubjewUHLHg6QzWEHSbmhJDk+46Z rLHrCiEBVx4Vq9Sr6YVii6ikSh93HRAOuFZjw49jGaQkMZJ3rbhzRpnIeCWFfvvd29AF sLnaX/2iWIycdyLSv13vAyWBPWz/E6zQh9jI5ymVpRxjVqLsWKVeNN2Z+KTF0gdGC8Vf V4yl/Y3AH8FxNOV+4oOvQl9AHW1M09GxLeUwZY1wSBumpk/kViH2EYr/ZlCVLoZjAEZP rN6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FtRpihDZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a1709060f8600b009318c913c59si18310024ejj.525.2023.03.23.06.23.19; Thu, 23 Mar 2023 06:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FtRpihDZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230267AbjCWM7f (ORCPT + 99 others); Thu, 23 Mar 2023 08:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjCWM7d (ORCPT ); Thu, 23 Mar 2023 08:59:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B02C42ED60; Thu, 23 Mar 2023 05:59:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 68DC2B820F7; Thu, 23 Mar 2023 12:59:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00DDBC433D2; Thu, 23 Mar 2023 12:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679576370; bh=YOBJmsp7i1KWavj4jti1adesbNPKvG0aHPIRQJ341es=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FtRpihDZjj8YcJgKjX7fIpTyRbnyV4VbInU34L/Be6y2oJw4mlI0Xer2LWmTObvJ+ mV5cF1F2wQc1eUGVaxnMUoPBLM/ufAOE3c5eo2QB51a9l1KF5PkJIzJYxy6C2/iewN MQKyG2kvqH+p9IxIMz3BJDUN99XUcogSFInpgL8iZnoS+ru9kA0n+PxX7rAc7wCmT5 Ktxczm2yE1eutPSei0MWh8TmeOfnexhfw1mJZCMpLKxBXOhGl2R/EUtFDETX4dcmXW O5rluaav4wp2+KPGGj5nRCwmKKdhg+4C16p2GAS2DybK1ZoUFFU4XRsNxWHm29/Smj qexajRgdCP71Q== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 72EEF4052D; Thu, 23 Mar 2023 09:59:27 -0300 (-03) Date: Thu, 23 Mar 2023 09:59:27 -0300 From: Arnaldo Carvalho de Melo To: Heiko Carstens Cc: Thomas Richter , Ian Rogers , Sumanth Korikkar , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, svens@linux.ibm.com, gor@linux.ibm.com Subject: Re: [PATCH 2/6] tools/perf/json: Add cache metrics for s390 z16 Message-ID: References: <20230313080201.2440201-1-tmricht@linux.ibm.com> <20230313080201.2440201-2-tmricht@linux.ibm.com> <1ee6884a-2d92-68d9-0917-3ae4f5390714@linux.ibm.com> <9632bc6c-276e-d0d6-b6d9-efe91fe3a1e2@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Mar 23, 2023 at 11:06:15AM +0100, Heiko Carstens escreveu: > On Thu, Mar 23, 2023 at 10:51:16AM +0100, Thomas Richter wrote: > > On 3/22/23 21:59, Arnaldo Carvalho de Melo wrote: > > > While trying to cross build to s390 on: > > > > > > ubuntu:18.04 > > > > > > using python3 > > > > > > > > > CC /tmp/build/perf/tests/parse-events.o > > > Exception processing pmu-events/arch/s390/cf_z16/extended.json > > > Traceback (most recent call last): > > > File "pmu-events/jevents.py", line 997, in > > > main() > > > File "pmu-events/jevents.py", line 979, in main > > > ftw(arch_path, [], preprocess_one_file) > > > File "pmu-events/jevents.py", line 935, in ftw > > > ftw(item.path, parents + [item.name], action) > > > File "pmu-events/jevents.py", line 933, in ftw > > > action(parents, item) > > > File "pmu-events/jevents.py", line 514, in preprocess_one_file > > > for event in read_json_events(item.path, topic): > > > File "pmu-events/jevents.py", line 388, in read_json_events > > > events = json.load(open(path), object_hook=JsonEvent) > > > File "/usr/lib/python3.6/json/__init__.py", line 296, in load > > > return loads(fp.read(), > > > File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode > > > return codecs.ascii_decode(input, self.errors)[0] > > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4271: ordinal not in range(128) > > > > > > > > > > Hmmm, this is very strange. After reading this mail I installed Ubuntu 18.04 > > on my s390 system. The build works fine, no errors at all. > > > > > > # pmu-events/jevents.py s390 all pmu-events/arch pmu-events/pmu-events.c > > # ll pmu-events/pmu-events.c > > -rw-r--r-- 1 root root 317284 Mar 23 10:46 pmu-events/pmu-events.c > > # > > > > The file has the correct contents and the build works fine too. > > # make > > The file contains UTF-8 characters, which were already present before > your patch. Guess you need to provide an addon patch which converts to > plain ASCII. Yeah, and in this s390 perf test build container in the past I didn't have the needed python3-dev package needed to build jevents.py, so it was being disabled and the problem was left unnoticed. Now that it is a opt-out feature, I installed python3-dev, jevents.py got built and then this failure surfaced. - Arnaldo