Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp421266rdb; Wed, 20 Dec 2023 00:37:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9iT5pIKiJQuxfELN8EOjqTnCdWB5sT0vrUs9n+hvwSkbrYfp28/FG0BTJRX1GYCj8Wds3 X-Received: by 2002:a05:6214:f03:b0:67f:113c:3679 with SMTP id gw3-20020a0562140f0300b0067f113c3679mr10675744qvb.38.1703061444933; Wed, 20 Dec 2023 00:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703061444; cv=none; d=google.com; s=arc-20160816; b=yJ/gs4T8aaQesxRdoIy9LBXNNv4kj2ytI/hvRVO47G23QbVCZyXgT4t9QDSoObV6yC 6wuZqzmNRt32Av0meT5Gw+S6wTWtWFxqwT2pOxVSAb1G2kX4o3G5rU6w4rdbVSVpb9Ff 2q0Bl8+MBRox0VV1b4s2RR49bZ03c7HEzp3ZcerWKWNTmLo8GZaIY1ZApbl4oOTMHMiN nIHha9HF94DOsWP25HOl8qC+u3N+/7G/pkdpCQ8ICeoib61ylIZNk0bjX5lq/pbD33LJ 9WS4CB65JIvK+s+5fn789GRVaLaOOnY+s5SEC9blc/bTOR6SY1l+/6l/tfc3sV/zGB/L tT4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=9VMLVNIGRI4t3nphMbkecDnChNH7w/uQeQ7s+oJ4vy4=; fh=IMHAtz+m6S1YJNoc0h9lzQWBZ/yLmPbcYOv+uvF11mY=; b=ujxFyZmAK13C4O4eCTZZd2TZJOb1fw5Itus/w8hL9kvXFzQBGPcbxvdf75p1qujILT wpdeVntbFCFHRDLzg6ztL8orCSPrZFfPkLw8ehoQpiceGa11XIPFlr+WZg1CC98FQWCH bsW4/MvGW5DGefP1Y5ExicXIMe1Y1oCQL7K4uGjQM+JJjQETe0xuI2St0XKa9p5uJFjg a8kAbvpLTb/UJ//vi7wzZxA00epnTMZh/c86ctbDBIAxYzXcnGaDSK0AikF+sm79doat 4xQ2GeuPYiHYhNaIr11zwFfVxeBZRlvPIvLk6iQQDEx8pnA0Jn542OIjXbVvsgmIY8yp aRtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g22-20020a0caad6000000b0067f340d32b6si8053481qvb.199.2023.12.20.00.37.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:37:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 667861C2230D for ; Wed, 20 Dec 2023 08:37:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22A261D691; Wed, 20 Dec 2023 08:37:21 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFC5B1D52B for ; Wed, 20 Dec 2023 08:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R751e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VyteU4X_1703061428; Received: from 30.221.146.20(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VyteU4X_1703061428) by smtp.aliyun-inc.com; Wed, 20 Dec 2023 16:37:09 +0800 Message-ID: <98276b4d-d842-4dac-ab06-2e0fd245f3a8@linux.alibaba.com> Date: Wed, 20 Dec 2023 16:37:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: perf tools arch Arm CMN PMU JSON files build breakage on ubuntu 18.04 cross build To: Arnaldo Carvalho de Melo Cc: kajoljain , Sukadev Bhattiprolu , Ian Rogers , Heiko Carstens , Thomas Richter , Adrian Hunter , Linux Kernel Mailing List , Jiri Olsa , Namhyung Kim , linuxppc-dev@lists.ozlabs.org References: From: Jing Zhang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 2023/12/15 下午10:41, Arnaldo Carvalho de Melo 写道: > Em Fri, Dec 15, 2023 at 11:39:14AM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Mar 27, 2023 at 09:52:11AM +0530, kajoljain escreveu: >>> On 3/23/23 18:41, Arnaldo Carvalho de Melo wrote: >>>> Exception processing pmu-events/arch/powerpc/power9/other.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 0xc2 in position 55090: ordinal not in range(128) >>>> CC /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.... >> >>>> Now jevents is an opt-out feature so I'm noticing these problems. >> >>> Thanks for raising it. I will check this issue. >> >> Now I'm seeing this on: > > Jing, > > Please take a look at: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d9df8731c0941f3add30f96745a62586a0c9d52 > > For the fix for the ppc case above. > I'm sorry for the breakage. Thanks for the catch! I will fix it soon. Thanks, Jing > - Arnaldo > >> Exception processing pmu-events/arch/arm64/arm/cmn/sys/cmn.json >> Traceback (most recent call last): >> File "pmu-events/jevents.py", line 1285, in >> main() >> File "pmu-events/jevents.py", line 1267, in main >> ftw(arch_path, [], preprocess_one_file) >> File "pmu-events/jevents.py", line 1217, in ftw >> ftw(item.path, parents + [item.name], action) >> File "pmu-events/jevents.py", line 1217, in ftw >> ftw(item.path, parents + [item.name], action) >> File "pmu-events/jevents.py", line 1217, in ftw >> ftw(item.path, parents + [item.name], action) >> File "pmu-events/jevents.py", line 1215, in ftw >> action(parents, item) >> File "pmu-events/jevents.py", line 599, in preprocess_one_file >> for event in read_json_events(item.path, topic): >> File "pmu-events/jevents.py", line 416, 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 3071: ordinal not in range(128) >> >