Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4789871pxk; Wed, 30 Sep 2020 11:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybShBACOF9de5qcIJfcYbbfoTsK17epQ2WokUZdr6aH+rk4tlibRLWE6uokAvaoKjJNFO3 X-Received: by 2002:aa7:c0d3:: with SMTP id j19mr4437248edp.40.1601491398084; Wed, 30 Sep 2020 11:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601491398; cv=none; d=google.com; s=arc-20160816; b=lvgdRQE+4q58w3OhCuxUeRoFLvUPIXM9YbdxxlyQZ2STqV63NfzuO+5w/4zUyIAWDD oHPvTYH5hcGyxEA/AwTMNr8vImh+9PGcW2wLJP16IjCevAM0aHui6XDHWOk9L9iY8FmQ 4wwIwyS8Rl3jLjpQ7Rd7AsEI437nzpU1BONVqN3qXKHkVrRy3Saux494Gd0ywgDWFHXc 7GSbS4CRAFS0OTBBFInz/LCg3IL5l/cuUxKCobIlMulCGuiDm/j+QOtd/gSMz5W4xoYJ iz/PSZwTm7S4m5M43OMw0aAy6WuCbSsa/10YCOEP49M3WUYElP3FFk1NSEG4br5TkdnR 7JDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=In2SDEDrB/Jl/th9B1LnXYSGYkO4BKbRYjmxpTF1mik=; b=bpi96BlkZaRp7LLp7R0e18Ft7wamWYwxdHYaPUMv7caenxaixncbWD2QMGMvDRNza+ BUD5CSt6G/6/lKYMwKS3mMvrRKXWIvYu/rYudAqHXKQ0GsRF9owxgj805gRklLfYqs2/ OgUzwtO/lOX1AxvC1JoOjQXJCCFcVc+nnrCFaxy4TpJsNZJTY5OQrHYS0jRb9BT7Fi5X ROdJCKZXTKZ4vSLGrQVBVHObC0oWNfOEAunwXo2smH39RxiBCKhRU0ceZszn5Y/TXnRS V4orw0s4vujkJ/8qSxu0EUPeImNDSd0OYGKxzPvYQw+H1/IvEvsl50CxS6gfwOKo0Yiu Qw5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tq6GHpak; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si1679461ejd.105.2020.09.30.11.42.55; Wed, 30 Sep 2020 11:43:18 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Tq6GHpak; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729936AbgI3SlC (ORCPT + 99 others); Wed, 30 Sep 2020 14:41:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:53030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgI3Sk6 (ORCPT ); Wed, 30 Sep 2020 14:40:58 -0400 Received: from localhost.localdomain (c-98-220-232-140.hsd1.il.comcast.net [98.220.232.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3385620791; Wed, 30 Sep 2020 18:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601491257; bh=/6X7+ekH9B9EzbyppXPju2VN9OD+fEAFrbkRAO+F05I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=Tq6GHpakSC9tDTi1owgunK+9JGIQP8e0Wacou10W3/53UPNVfGWOxEid6pxW2VgM3 6l68IuBDu9l/tO3LJOIAu/avDrt17FB5pgv6Qdq531HMGnv9neuVq+tN2c3PFN5CK0 d/5EP1JYHBhgWC4V7b98TPgVJGv/IjjPSKuY443A= From: Tom Zanussi To: rostedt@goodmis.org, axelrasmussen@google.com Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] tracing: Change STR_VAR_MAX_LEN Date: Wed, 30 Sep 2020 13:40:50 -0500 Message-Id: <8616d1a2485fee1ae71d27d7c598acf1c9e32abe.1601490263.git.zanussi@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 32 is too small for this value, and anyway it makes more sense to use MAX_FILTER_STR_VAL, as this is also the value used for variable-length __strings. Signed-off-by: Tom Zanussi --- kernel/trace/trace_synth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_synth.h b/kernel/trace/trace_synth.h index ac35c45207c4..5166705d1556 100644 --- a/kernel/trace/trace_synth.h +++ b/kernel/trace/trace_synth.h @@ -7,7 +7,7 @@ #define SYNTH_SYSTEM "synthetic" #define SYNTH_FIELDS_MAX 32 -#define STR_VAR_LEN_MAX 32 /* must be multiple of sizeof(u64) */ +#define STR_VAR_LEN_MAX MAX_FILTER_STR_VAL /* must be multiple of sizeof(u64) */ struct synth_field { char *type; -- 2.17.1