From mboxrd@z Thu Jan 1 00:00:00 1970 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 95E142DB8F for ; Fri, 15 Dec 2023 14:41:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RJfpU01J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC202C433C7; Fri, 15 Dec 2023 14:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702651282; bh=jxynl7qPjH3mBVQOeL0t9o19ICih7P69V0e+PCySVP4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RJfpU01Jw/GRL5meXRBx7eTq13iyNlDyvjkQHa3VYQoWgHGc5emAIcYGZoAGGPyBj EW7u1UhagIoN9Z76WsT83oOr3k7pnSABbpbxS/UDvftVOHO0OrFHD+KliIuShYF9KA 7z4V12dhIk+PixYrYpbq5GHGkhZAxqg6FNjtTEIW/EJUozC5IyfH/lXBEO9XAlkha9 hJyQrq+NOs5bCnVYKoyrS9gmgOLVro+yAP+DY52Xh3e0pCWc+GRm3LuiY9PUCsbbiD mIaOP3A5dNeTib6EfO4Xny+PT+iLSz09QXbtMGROTRrpAkrhgA7o4bcRzC+byLO6bN Gb7Jln7JFlIFw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 63456403EF; Fri, 15 Dec 2023 11:41:19 -0300 (-03) Date: Fri, 15 Dec 2023 11:41:19 -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: Re: 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 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. - 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) > -- - Arnaldo