Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1251184pxb; Thu, 7 Oct 2021 04:10:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHxBqVncHLWb6iH02OaOm9/Iky1Kvx0VusBJfVwPMTUnVBC6llLDgrPQkqVIpVw9om4+4B X-Received: by 2002:a63:4743:: with SMTP id w3mr2806059pgk.245.1633605010840; Thu, 07 Oct 2021 04:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633605010; cv=none; d=google.com; s=arc-20160816; b=xIsA5HidOEheyPP4Uhjpqlav/rkZaBKwg8fSyjzk00FiPbn+ThLbEwBTUlJRfrC4Y7 /NxikYgQROXQ9qxpXWvGm+XGb/EXIXgvuqSMA2cJlrYyC0/BeNlM8ZciWBLktX6r6O9b ADX3KGjwvo1Fd9fIuvpAEv5tMzNmz9ubPS3YNpvChSNx/UCJh7b58vCtnowVW0foobaS bO2UoSB/Il60o7OxiSMg054p6kqxBccSWzh0s2Js++EIG7C7OePAh3lNdkNRbZGiopm5 OZtTmLW0N6kWHAlyp1oo0OL8EXWH817QVAhp5M4Tb0Ag/SL0yt7NQRt8R8oJ03/L7aYv AlJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/+HtlNBYIyOoUFlAjizNvMlMkPGr87HcyJsciONrzWE=; b=hO+zZocHHeNS/VKE5ptYVOUIcPXntP7OvYyZrJVjIBALZtikP5UFBMIgpTE/xV46UL opoJEwYDc/bNNaF6uWPceENWaMxxitaw8HnBXhOiGEa3c9L3Y9B6oFID+BZMVbF8X/U2 Q01VshLnbZ0E5OSmk0ALgwXC4S73MDuKpjLWLCSAvwn7Q3E9vXPSlyptBqfKehpcRq3B i+obqezCOgjHEH0O9jpgltFasga+OGoN0qrU1m3imdU3w6hNwX5xAAIhSlj3FiwJCKIU 7+58LxazopMY0f0cGsFAtAHlQb76TvKejMaJlL7V+B9FmfgMUYmEB2sBIaWH+A148AgX CpUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si29492149pgv.643.2021.10.07.04.09.57; Thu, 07 Oct 2021 04:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240848AbhJGLHz (ORCPT + 99 others); Thu, 7 Oct 2021 07:07:55 -0400 Received: from foss.arm.com ([217.140.110.172]:45822 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240692AbhJGLHy (ORCPT ); Thu, 7 Oct 2021 07:07:54 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5D8E56D; Thu, 7 Oct 2021 04:06:00 -0700 (PDT) Received: from e121896.Emea.Arm.com (e121896.Emea.Arm.com [10.32.36.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 727533F70D; Thu, 7 Oct 2021 04:05:56 -0700 (PDT) From: James Clark To: acme@kernel.org, john.garry@huawei.com, ak@linux.intel.com, linux-perf-users@vger.kernel.org Cc: Nick.Forrington@arm.com, Andrew.Kilroy@arm.com, James Clark , Will Deacon , Mathieu Poirier , Leo Yan , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] perf tools: Enable strict JSON parsing Date: Thu, 7 Oct 2021 12:05:39 +0100 Message-Id: <20211007110543.564963-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After a discussion on "[PATCH 1/4] perf vendor events: Syntax corrections in Neoverse N1 json", John Garry suggested that we can just modify the parser to make it more strict. Hopefully this will remove the need to apply any future JSON comma fixup commits. Applies on top of "[PATCH v2 1/3] perf vendor events: Syntax corrections in Neoverse N1 json" on perf/core. Also available at: git clone --branch james-json-parse-fix git@git.gitlab.arm.com:linux-arm/linux-jc.git James Clark (3): perf vendor-events: Fix all remaining invalid JSON files perf tools: Make the JSON parser more conformant when in strict mode perf tools: Enable strict JSON parsing .../arch/arm64/ampere/emag/bus.json | 2 +- .../arch/arm64/ampere/emag/cache.json | 20 ++++----- .../arch/arm64/ampere/emag/clock.json | 2 +- .../arch/arm64/ampere/emag/exception.json | 4 +- .../arch/arm64/ampere/emag/instruction.json | 10 ++--- .../arch/arm64/ampere/emag/memory.json | 4 +- .../arch/arm64/hisilicon/hip08/metrics.json | 2 +- .../pmu-events/arch/nds32/n13/atcpmu.json | 2 +- .../pmu-events/arch/s390/cf_z10/basic.json | 2 +- .../pmu-events/arch/s390/cf_z10/crypto.json | 2 +- .../pmu-events/arch/s390/cf_z10/extended.json | 2 +- .../pmu-events/arch/s390/cf_z13/basic.json | 2 +- .../pmu-events/arch/s390/cf_z13/crypto.json | 2 +- .../pmu-events/arch/s390/cf_z13/extended.json | 2 +- .../pmu-events/arch/s390/cf_z14/basic.json | 2 +- .../pmu-events/arch/s390/cf_z14/crypto.json | 2 +- .../pmu-events/arch/s390/cf_z14/extended.json | 2 +- .../pmu-events/arch/s390/cf_z15/basic.json | 2 +- .../pmu-events/arch/s390/cf_z15/crypto.json | 2 +- .../pmu-events/arch/s390/cf_z15/crypto6.json | 2 +- .../pmu-events/arch/s390/cf_z15/extended.json | 2 +- .../pmu-events/arch/s390/cf_z196/basic.json | 2 +- .../pmu-events/arch/s390/cf_z196/crypto.json | 2 +- .../arch/s390/cf_z196/extended.json | 2 +- .../pmu-events/arch/s390/cf_zec12/basic.json | 2 +- .../pmu-events/arch/s390/cf_zec12/crypto.json | 2 +- .../arch/s390/cf_zec12/extended.json | 2 +- .../arch/test/test_soc/cpu/uncore.json | 2 +- .../arch/x86/icelakex/icx-metrics.json | 2 +- tools/perf/pmu-events/jsmn.c | 43 ++++++++++++++++++- 30 files changed, 85 insertions(+), 46 deletions(-) -- 2.28.0