Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp200262rwl; Thu, 23 Mar 2023 14:55:25 -0700 (PDT) X-Google-Smtp-Source: AKy350bkPTM2DFCjB9fuTPMNam9Eo6KTjlrBpPEk3pnLYbi20n+ECeWWP6CDODZQRMQSPCgd9Q2R X-Received: by 2002:a17:906:8a41:b0:92b:6f92:7705 with SMTP id gx1-20020a1709068a4100b0092b6f927705mr455530ejc.40.1679608525558; Thu, 23 Mar 2023 14:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679608525; cv=none; d=google.com; s=arc-20160816; b=azuHzGkm8zukatPr8HY0qMFVXZSJAHrGJwa8KoeBLKT7q7HBhM62WrvpAoYxpkFCrm kRNbA38YaVM5A8IFubx9L0toVzk7ESlMlBZvaLLFcWX5cJx5jVNsEdCUFRX2DKc9xweg m0Y0kkRMTqFoP+PxIDGs7r3LQQqcf64ABEPNC7eZIzWyKTS8xlVqvig52DEGArX3AiAk t0mdMgg7if/P8NZ3mEn5DLmgnvCuPNYXD5LzUNC33/W4ETB6WkkluCz4UqARDDqRR3Js 7zgTOMpExqxSynP5DLuwNxkirTKU7H1sEmqKfCBCwYA76H/g8XEr0buOTxijr8dHUIUO Yc5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=PjFeBO5a8NgjVi0hamlYgvtmMCtvdU0G5ONnEB5Vl0U=; b=NOtVdvw7VI9BChkMIin2egfbHUi1bUscxNf5TR+FtLr5wuyXtwPBIfe6L0PxhADEET BM2XoVZuV4Yg2KSE8sR8kWSkRn13VtTgIqfpVpJsdmQdQIEFHjEuAaSlykKwZv80RwA6 yTx6dQFYb2JvEZt+5nqKv8q+5ET+kSXQ3IcdRBHRAM2c8b2hOJAndsNJpHM+qRhvlfBS 9cxjDC8PRie8jENINHEUp2WBVbI8U2CPlVuu04Gmv+1WWFPD1k90uAet7lHt6S5Zi7xn E+EUzALYhAvLkHmqc6a6/7oa/HwszPT+aohWehmsebkNpJoCJJCFfjG0/2Wa2DMRG8aK 44Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=YjGFBeDU; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a1709061c4f00b0092939f89c40si20281037ejg.991.2023.03.23.14.55.00; Thu, 23 Mar 2023 14:55:25 -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=@ibm.com header.s=pp1 header.b=YjGFBeDU; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbjCWVwO (ORCPT + 99 others); Thu, 23 Mar 2023 17:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjCWVwK (ORCPT ); Thu, 23 Mar 2023 17:52:10 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD7FE051 for ; Thu, 23 Mar 2023 14:52:07 -0700 (PDT) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32NLW3bM025477; Thu, 23 Mar 2023 21:51:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=PjFeBO5a8NgjVi0hamlYgvtmMCtvdU0G5ONnEB5Vl0U=; b=YjGFBeDUfXsX7LL0q0YqVtSQ2Hr9uCKwmD8ci7W4AkuutjnaBCDp9c8jNXcw5/r5zqLG 7JQ3vqrZdylbazgYfytWa8sDZXtdmLrvQcVK6HMWWw2qk3rAAoUp3vKLrnkXDbQD0D4p 2EduoQ0eq+YDfD02F7KCFncO6Jg7MpOXyNgGyIGguJ5GQZMAW+PAbH+MMxfwdRqR9vCW ftKOyvzha1H1gIh6q0LhpWPLLY347BTit66isTOu0hICVPmXZ8xVa9YhoQSXFDKsBKRo nY6ItIKdg95xjM1OI1/Mepx00ELx2009LwhF4QQGJoUUDL/2CECBkmSwxTVsqPY9jfl3 Lw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pgxs1rfrd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Mar 2023 21:51:43 +0000 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32NLoCeu016695; Thu, 23 Mar 2023 21:51:42 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pgxs1rfqp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Mar 2023 21:51:42 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32NLL6tW014154; Thu, 23 Mar 2023 21:51:40 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3pgxksr0k0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Mar 2023 21:51:40 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32NLpbTo22807262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Mar 2023 21:51:37 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9D9920043; Thu, 23 Mar 2023 21:51:37 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 397BF2004D; Thu, 23 Mar 2023 21:51:37 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 23 Mar 2023 21:51:37 +0000 (GMT) Received: from [10.61.2.107] (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 064DE600A5; Fri, 24 Mar 2023 08:51:32 +1100 (AEDT) Message-ID: Subject: Re: perf tools power9 JSON files build breakage on ubuntu 18.04 cross build From: Benjamin Gray To: Ian Rogers , Arnaldo Carvalho de Melo Cc: Heiko Carstens , Thomas Richter , Adrian Hunter , Linux Kernel Mailing List , Jiri Olsa , Namhyung Kim , Sukadev Bhattiprolu , linuxppc-dev@lists.ozlabs.org Date: Fri, 24 Mar 2023 08:51:31 +1100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: GV87z2IIGbFcpkx1J0ZXZv9IFIJZyW4p X-Proofpoint-GUID: DW58xbobw5jycRQXmITClSHj_mYuGpa6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-23_13,2023-03-23_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 clxscore=1011 malwarescore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303230156 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,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 On Thu, 2023-03-23 at 08:50 -0700, Ian Rogers wrote: > On Thu, Mar 23, 2023 at 6:11=E2=80=AFAM Arnaldo Carvalho de Melo > wrote: > >=20 > > Exception processing pmu-events/arch/powerpc/power9/other.json > > Traceback (most recent call last): > > =C2=A0 File "pmu-events/jevents.py", line 997, in > > =C2=A0=C2=A0=C2=A0 main() > > =C2=A0 File "pmu-events/jevents.py", line 979, in main > > =C2=A0=C2=A0=C2=A0 ftw(arch_path, [], preprocess_one_file) > > =C2=A0 File "pmu-events/jevents.py", line 935, in ftw > > =C2=A0=C2=A0=C2=A0 ftw(item.path, parents + [item.name], action) > > =C2=A0 File "pmu-events/jevents.py", line 933, in ftw > > =C2=A0=C2=A0=C2=A0 action(parents, item) > > =C2=A0 File "pmu-events/jevents.py", line 514, in preprocess_one_file > > =C2=A0=C2=A0=C2=A0 for event in read_json_events(item.path, topic): > > =C2=A0 File "pmu-events/jevents.py", line 388, in read_json_events > > =C2=A0=C2=A0=C2=A0 events =3D json.load(open(path), object_hook=3DJsonE= vent) > > =C2=A0 File "/usr/lib/python3.6/json/__init__.py", line 296, in load > > =C2=A0=C2=A0=C2=A0 return loads(fp.read(), > > =C2=A0 File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode > > =C2=A0=C2=A0=C2=A0 return codecs.ascii_decode(input, self.errors)[0] > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in > > position 55090: ordinal not in range(128) > > =C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /tmp/build/perf/tests/expr.o > > pmu-events/Build:35: recipe for target '/tmp/build/perf/pmu- > > events/pmu-events.c' failed > > make[3]: *** [/tmp/build/perf/pmu-events/pmu-events.c] Error 1 > > make[3]: *** Deleting file '/tmp/build/perf/pmu-events/pmu- > > events.c' > > Makefile.perf:679: recipe for target '/tmp/build/perf/pmu- > > events/pmu-events-in.o' failed > > make[2]: *** [/tmp/build/perf/pmu-events/pmu-events-in.o] Error 2 > > make[2]: *** Waiting for unfinished jobs.... > >=20 > >=20 > > Now jevents is an opt-out feature so I'm noticing these problems. > >=20 > > A similar fix for s390 was accepted today: >=20 > The JEVENTS_ARCH=3Dall make option builds the s390 files even on x86. > I'm confused as to why that's been working before these fixes. This is the non-breaking space in the file (UTF8 C2 A0). Telling Python to decode with UTF8 would work (note it's breaking with the 'ascii' codec). Setting the environment variable LC_CTYPE=3D"C.UTF-8" sets the default, or the script can specify explicitly. But I also doubt the NBS was intentional in the first place.