Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2941045lqp; Mon, 25 Mar 2024 13:53:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOw8zlAsXOATpVQxyWsxpbcTBclCXANwRR2rfd7lD2ZupItuoZwPXW+enImHdBHItoiDKbiEXlfPqWQ83+WTt2855YLlXWmpzyYKcofA== X-Google-Smtp-Source: AGHT+IFKc+9troJYQMaOvD+XRlEoeEFiHGhRfh66DcDObKq9cE8JMUuw/dXcBQDHNE+25r25Mr5L X-Received: by 2002:a17:903:496:b0:1e0:4ce4:7e42 with SMTP id jj22-20020a170903049600b001e04ce47e42mr7957580plb.17.1711400033371; Mon, 25 Mar 2024 13:53:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711400033; cv=pass; d=google.com; s=arc-20160816; b=t3SHQ/Dv+H5Kczx2gQC2C4xWyCGoMtRjp9UK/oHXtH88btaEpct/02iD7DUGAwqiFQ EfJ9N+NX72WZpKGE/iAsf0xuv77Mahpxuy8joadEmul9EUciz/9PYyHYKREWvTkm3kx7 7DSaUxV//50C4YwVkMBFR9Nqmaqk+Tv1UM7712r0yADVQo7f1VahcoYO8bi6yXjVNVy2 z0XmAKT8hLuec3UMf/E3BMQkKpGHqO5XfTCOoqiCMN/CBTQJioAnN5SzZdkw21IANM1O yQviqyWZS3dA+ijaKUesOp41Q4aRhyowwJ2QcApsHugFivX4O1vw51S/KfQrIjQGLm+s IFUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=HT49QKTFozDPnkAhjpNlF2Nc/BvGoiYkOKVQZ+K0zKc=; fh=WtL5fQT7ZUc/CxFY5ivX7o+R0egHbl7+G/zS94M/DC4=; b=NVz45xwZ9BMewuyNmwrPv10hvPbLAqObQvXifV6zH4Eu+qQzgJ4oFVoo1K7VhfUioJ DGrBBmSCc1fQzsBQ2V1u3D+10z+eV2Y53hEic7BPNg71pibAltFbBq8FbTD5C4VygXB1 BDHxm0wb4ruBgcm+bP/c6174a2kWQcYJHJ0XtFi/uJeZkPps3LMtTaRfIDLEx9Rwq3gU fDYv7VDocoH2UtVdxxpQZZMDT+iUNjtgfRALJxBaXKu2g7WQEgfm9nnVQopOedx8kkaN 9ZVJU/JTqBbAeORveMgUsCLf3VtZhVaHH2+DXx0w8pVhleBfzqVlSoDB/Cqao13u5pwZ BjHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-117982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bb12-20020a170902bc8c00b001e0980254f8si5544760plb.381.2024.03.25.13.53.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 13:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117982-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-117982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E096932259A for ; Mon, 25 Mar 2024 20:51:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D39170CBA; Mon, 25 Mar 2024 20:46:45 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AE415D738 for ; Mon, 25 Mar 2024 20:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711399604; cv=none; b=p5tKlS9iB7OeDwVeJkkIG973jX8Hbg0jroCqkOqwG/E2J993E8JtzNuMC69WF/8ej9ZbRiW5qySW6r75fAa/fSREQRn9MELb7raYuEKysfUw5K21pxKth765DJK+Na92A0IEj8NwViu1ovi7eFi6YtyKsDyND40c9syIdPQH+Cg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711399604; c=relaxed/simple; bh=NzoWAmhlNMrynHgIEM+sPtA7EMAquK1BebI41cCyErg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Mj3GR/zqrw6Z0twVfWYUH+husa+Ei+1p/7sezkgglQiEe07Aq1BY7uB2BXphn9Q5WdahTxiHgOP0vVKqHFa+X3WY5VxtA7iju1IaIwBvN3n+H8zHaqHtaCruS91VAsNRtdDreccKGmwTzGAG4fujghUfUNDe5wPdgwCn2PWPO8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 498BD339; Mon, 25 Mar 2024 13:47:15 -0700 (PDT) Received: from pluto.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F09D23F64C; Mon, 25 Mar 2024 13:46:40 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, Cristian Marussi Subject: [PATCH v2 1/5] include: trace: Widen the tag buffer in trace_scmi_dump_msg Date: Mon, 25 Mar 2024 20:46:16 +0000 Message-ID: <20240325204620.1437237-2-cristian.marussi@arm.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240325204620.1437237-1-cristian.marussi@arm.com> References: <20240325204620.1437237-1-cristian.marussi@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A bigger buffer allow for more diverse tag names. Signed-off-by: Cristian Marussi --- include/trace/events/scmi.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/trace/events/scmi.h b/include/trace/events/scmi.h index 422c1ad9484d..127300481123 100644 --- a/include/trace/events/scmi.h +++ b/include/trace/events/scmi.h @@ -7,6 +7,8 @@ #include +#define TRACE_SCMI_MAX_TAG_LEN 6 + TRACE_EVENT(scmi_fc_call, TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2), TP_ARGS(protocol_id, msg_id, res_id, val1, val2), @@ -150,7 +152,7 @@ TRACE_EVENT(scmi_msg_dump, __field(u8, channel_id) __field(u8, protocol_id) __field(u8, msg_id) - __array(char, tag, 5) + __array(char, tag, TRACE_SCMI_MAX_TAG_LEN) __field(u16, seq) __field(int, status) __field(size_t, len) @@ -162,7 +164,7 @@ TRACE_EVENT(scmi_msg_dump, __entry->channel_id = channel_id; __entry->protocol_id = protocol_id; __entry->msg_id = msg_id; - strscpy(__entry->tag, tag, 5); + strscpy(__entry->tag, tag, TRACE_SCMI_MAX_TAG_LEN); __entry->seq = seq; __entry->status = status; __entry->len = len; -- 2.44.0