Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2864185rwb; Fri, 20 Jan 2023 08:15:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXsvJetOtjTdn/XeiTu5mqvG/dsVA0DEnlf+wj2WSqA4wFnk62US4lSdNNfBI0C/ADaFtLcL X-Received: by 2002:aa7:cf92:0:b0:48b:58be:472c with SMTP id z18-20020aa7cf92000000b0048b58be472cmr15801481edx.18.1674231310911; Fri, 20 Jan 2023 08:15:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674231310; cv=none; d=google.com; s=arc-20160816; b=DvdKtsl8rx76XHM0y2fn3tM0BEH5ol+8RxcYliiJgNtJ4jGDC8Q4qDY4xOP/eZzFoz /ksQcYtAbgjt1gpBTLqmYwBkrlk/ik65nxF0LiNbABrQ6jIA1PYZstU7BPaFqYXhcGer 0Pm/r5rR1pVkTqtncPBXjVLN9MZQucgPw2MifgELlcR3UeigpbYs9iYbv4X1ODq6wOcz V5q3hWkDKadWcMSb2Nbph/QYMKzPX8APpUEXqUMRs6lUhA0f1+pfd0aJPsOFH3ok2Lbm z76h9zoQbc330GEXrE2ti5V3Dv79iOPGUZ3P4oHlxs8OHfUea5XUkknr1epbqsuGG97B vNFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=cftWnAmLp1SAzK+LEC+VkfIJXP3yn4XV5OF+VxxmSEI=; b=de7ynYkRUdOTq8zCn8AkZl1mM1RryrG6upmX+YThf3Ps5anZZIFbeQKsk7k3NbQtuJ /kWLEeEOU4XJS8KGpaJo616DFjOSv0hq1LI3VEUzvVXyatCC8BBl0afiGod0w/6P0uOA LV1cXU9ui9u7UnuHLjrGgenDgQXDe1HAXjbq/mT0vBjO/VG8bwr3sQ1Erh31AwUh0MlA frQhnUjAel4YeaOvwB0JcnWPzQGdU99EvqAJzlRRYwo9wKF+9/XXXt/5/TedhIWNY7Fr 3WWYPhodfsI9ayAKQ8YuTVriwqjv6L98Q0e3UtWZoo5pEVcKzhhqTa9NLe51fzrGexcv 7y7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kehQTJmy; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a05640234d600b0049ea0e7657asi4137745edc.11.2023.01.20.08.14.58; Fri, 20 Jan 2023 08:15:10 -0800 (PST) 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=@linaro.org header.s=google header.b=kehQTJmy; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230456AbjATPiD (ORCPT + 49 others); Fri, 20 Jan 2023 10:38:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjATPiA (ORCPT ); Fri, 20 Jan 2023 10:38:00 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6772BC79EB for ; Fri, 20 Jan 2023 07:37:11 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id b7so5205442wrt.3 for ; Fri, 20 Jan 2023 07:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cftWnAmLp1SAzK+LEC+VkfIJXP3yn4XV5OF+VxxmSEI=; b=kehQTJmy06GF73Jk4gupKe+iWEBSAOLIlh+im1CqYyRHgwYZcbshJUPBfo72NL2LAd SLtSL0YWsl7BzjCrReChO3QJdVuU+6VCQP2yXD+UC2XIgu4L2cfaSb00D4h26H7FjZ1R ShBO5E9s4ISWQZzZYOx93qA1eVZPYMQTfLrMk3WozQqhIO0ZwTZiBsKePs9hL6qWo5LD WsaOhLeRTc2YqX6diZLb59zkH3S+py+QjDuizqXsGKvCv9cFAQyf1l9tQMJmlHCtTzNu ienzRpqA5wUeZ/1B2roxwgRvvX8PZrY/fWWZ01bC4YdTC9stVMa7pZ+uZhVPAnc15d8j J95Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cftWnAmLp1SAzK+LEC+VkfIJXP3yn4XV5OF+VxxmSEI=; b=hVpm3yyr8m4MgSlkRaVIuPNsDU2+/b6sGJr8UgRN1QtuSyxkE4J+FFcozsD+DiYdT7 zLiG27tlsL1MGdu/BVpADV11mGd8ozRm0npO0FMXCcMo04fVWo/pFJga8gnzGwNmGf54 fecHTLwwQl1LI1KpFGRGLKUj23mbGmZWZ+np7a1n+BOXF8rLaCcUm526uWcNJOE1whLf Q+DUe0SQq4FjpaFUdkYqmvp6mGJWjaR1gqwZtCiQB+nC2MsChcHV1OUxGa1IsKYub4dz /oI7giR6r0Hbq9pwwQmxiWAcnWdM5YuXoQAa3Fyt7xvyDXISpSbifycTT/Ew6IDcHOov tyqA== X-Gm-Message-State: AFqh2kobmI8D70acPMXZ7k9iFhfxbRzk/yQyX5AQ63mrmI+6aLdU3hdK miRTPCc67dGO0bcfL1imIBUUnArmtN/VYT63 X-Received: by 2002:adf:a485:0:b0:2bf:81eb:dc26 with SMTP id g5-20020adfa485000000b002bf81ebdc26mr1311316wrb.37.1674229029690; Fri, 20 Jan 2023 07:37:09 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:a9b1:8068:4297:73be]) by smtp.gmail.com with ESMTPSA id b16-20020adff910000000b002bdf8dd6a8bsm14212460wrr.80.2023.01.20.07.37.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 07:37:08 -0800 (PST) From: Mike Leach To: linux-perf-users@vger.kernel.org Cc: acme@kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, leo.yan@linaro.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, Mike Leach Subject: [PATCH] perf: cs-etm: Update decoder code for OpenCSD version 1.4 Date: Fri, 20 Jan 2023 15:37:06 +0000 Message-Id: <20230120153706.20388-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 OpenCSD version 1.4 is released with support for FEAT_ITE. This adds a new packet type, with associated output element ID in the packet type enum - OCSD_GEN_TRC_ELEM_INSTRUMENTATION. As we just ignore this packet in perf, add to the switch statement to avoid the "enum not handled in switch error", but conditionally so as not to break the perf build for older OpenCSD installations. Signed-off-by: Mike Leach --- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c index fa3aa9c0fb2e..48e7121880a9 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c @@ -604,6 +604,9 @@ static ocsd_datapath_resp_t cs_etm_decoder__gen_trace_elem_printer( case OCSD_GEN_TRC_ELEM_CUSTOM: case OCSD_GEN_TRC_ELEM_SYNC_MARKER: case OCSD_GEN_TRC_ELEM_MEMTRANS: +#if (OCSD_VER_NUM >= 0x010400) + case OCSD_GEN_TRC_ELEM_INSTRUMENTATION: +#endif default: break; } -- 2.17.1