Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6717847rdb; Fri, 15 Dec 2023 06:40:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxSqg6NSKD8uBpk9hnKGzVtdMC2wEs2CS44nbqbN+5KJzaur/8kYDzuHvyhy4GZV0wUQpc X-Received: by 2002:a05:6a00:84f:b0:6ce:2732:1e0a with SMTP id q15-20020a056a00084f00b006ce27321e0amr7327970pfk.68.1702651208891; Fri, 15 Dec 2023 06:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702651208; cv=none; d=google.com; s=arc-20160816; b=qVx0c5TekOrD/kCshMSqAoB7/YY0uulJ4dDBygzEMV4h431RiYWkBAccktMja+5m0E 5d3VlBFiRTh64S1KFrMFpI/YUfbI7vMdWXHpKynm7ZRg+Q1RUkbfhImwYlcxmTPYbbSJ LSG7S6Jb4wpUmgwoZIr1CL+9VSy0qA7kPZkDUM3izfOCOvqUKPpkpQYwPk59LTCXiDWI ibWm4lau2a0Yr23YIRZtbWf3bDjF945OPbthjOxpNyq728EYom5WQJJvGKX2AxYC7WBY cUZOzxXiAkIeZjHY1kor92uv/CkwSaFGnmwgKdmNmp1Lnn5B2qxEOAlvpz+vihDeGkpc 0cNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FnFQFQ6pjssNa5lDwhFIiendJGkhOzpXugtG2W/zokQ=; fh=oQlAD3iBJXRZSC6NNbraFpPqu8oqD8GVj2NfqDMniu4=; b=e2bPj31aVY5cXMBu21yNfWAVI6seM1ZT88JylvYIQgsgW8L175QcucsHLIWKQ2+Iv5 uxLNRTUQdUTQCrnpvK/86/qrEkKJ2p3vnMQZoxKnzBGiCRnOrytlOOuyGCwDzFR2eACl 0yDh1OWUfhLFgg4UQi1maLB4jnDpRw/ZSjC7HWo/4r8EDIaXtKYIk2R4O9/jUgGnqOgH 8KfRlCznCnLkzX87DW5ejp2FOLSGo0tuZGiPm7qzIKEXIH2DDGAwAdHtc5jNKHcpNMuy fu+GLktXUssuF7kfYGa9Q/Qo3FOS/D9KRLEzN4tlEB9bG1D5mobtSpMxkyIAdCoghbE5 6bgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X+DXRh1D; spf=pass (google.com: domain of linux-kernel+bounces-1114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a11-20020a634d0b000000b005c621f7280csi12984822pgb.466.2023.12.15.06.40.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:40:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X+DXRh1D; spf=pass (google.com: domain of linux-kernel+bounces-1114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8DCA72848D9 for ; Fri, 15 Dec 2023 14:40:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 522BA37149; Fri, 15 Dec 2023 14:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X+DXRh1D" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6CD86364DF for ; Fri, 15 Dec 2023 14:39:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE582C433CD; Fri, 15 Dec 2023 14:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702651156; bh=33M2vrx6UPW+NCsp4u79rR82ThY+lOzFqm0TWaDJXow=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X+DXRh1DWtI+q7hVxZNcvDsLlFZdABe82o2h2+N0caAE5TjidRJslXbGduvFqTD1+ ydFoWVGky/X9Jwh8AjqClszt4107m38AvlirUsJrxNrbjG9mrFZLArb+zMUZDkS1JR UfzufmJk4qk7k0IB6/d19frP246gSreon3JrrdoIt9QVREEXUq3fchwpgKCH6ERA+t Oc/SHP4dl8iRESX5Fq8W4YF3gk92ljskoxyTJjl+9D6do6niWskreixC03f0dRVeRf 0aN8O04w3P8hWcw3/E/QhulG58ce89sSsZFU6Qp2xlWkBKyg3oBM2AI2Hwyj7J34vV cVIt+g1AZ2n8w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 03C32403EF; Fri, 15 Dec 2023 11:39:13 -0300 (-03) Date: Fri, 15 Dec 2023 11:39:13 -0300 From: Arnaldo Carvalho de Melo To: Jing Zhang 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 Subject: perf tools arch Arm CMN PMU JSON files build breakage on ubuntu 18.04 cross build Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com 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: 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)