Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4072979pxk; Tue, 29 Sep 2020 13:36:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJudZqE5BMc94/1KtJFZLQRiP+kM8duZBUZbFaqTFHjNd4+IW4Y/ttVUbl7Bd83BtHCCk9 X-Received: by 2002:a05:6402:615:: with SMTP id n21mr5063898edv.59.1601411776605; Tue, 29 Sep 2020 13:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601411776; cv=none; d=google.com; s=arc-20160816; b=yQfeia5lm48SxfdYEe8ml/E+OqV37yfBXtQRqEl+ARGC3Ff0Zt0oFtNZPQ/1gfbczf qoxhcg/ol2RJc9PabPmQhkaYJPp43/wquoUh/m07qwv3uVa4L5AN7xVWEAM+dzSEftSd KGV48vRvQl75qe0EiI/u6mWFI3BvTqKtIYwaCSD3eUrhIBZ1sZPkMi8xM8Abj4KhPxHZ AA0ac/q/8P3K7z0QYoPpjfdC6+REip8KolhcBN7V+cc+cgstjuAAFxhQrofY2pYrQsof QvuTB8FB7+1mn3Zn5ZJqkhYOTqpzBuXCYAyi0o2rDNVKoXO4XVPLcubQWGJR7NOZV8bY SCQA== 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=u50C9fpVnHh8pWj2L0gmM9XfFFCVFcjbBTAIFev8EhuhE1CO7IAYmcfLudV4AR36FE I10rMBKLWDLzp9STw2trBOlygJZpxGvENbnVF6cPhMcuHZ8+wY23EPThrl8fqk3PbOaR 9eW0aIw5Pr7EkYMRVF3vPMenW+xd55xmqaut82lvl9k+yxZsEI6+H7BU4HjHttb7tTc3 58DHgyGNavVSkxKVor9sMxMnB/tyxcNBWiKq91ol62//69y5Cdm81Food/YT+FoWxmgT S/HO2COliJVQ9Fg/4BUddefMh/0+eG8D+sqzvE0phZEiWhZvA/uUddDpmHrmSARaajZx cvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NILeGEoE; 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 sd6si3350169ejb.207.2020.09.29.13.35.53; Tue, 29 Sep 2020 13:36:16 -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=NILeGEoE; 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 S1729188AbgI2Udu (ORCPT + 99 others); Tue, 29 Sep 2020 16:33:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:41762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729068AbgI2Udr (ORCPT ); Tue, 29 Sep 2020 16:33:47 -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 CADCA2076D; Tue, 29 Sep 2020 20:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601411626; bh=/6X7+ekH9B9EzbyppXPju2VN9OD+fEAFrbkRAO+F05I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=NILeGEoESpbimWiBOowP89wBSB4/Vd8PT15/hMX9Y6rQt7SY9T6ZODntUMLkKuvbA WrtgTNE/kv0W53mfLT0vc3jxJvPI/qze5SqcQ2Os3w3Sr/YOeMV1NapsopSOlbWXNe AgedXYocNm+WIPr7B8olIKsVeQEyicX+V6u9WARw= From: Tom Zanussi To: rostedt@goodmis.org, axelrasmussen@google.com Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] tracing: Change STR_VAR_MAX_LEN Date: Tue, 29 Sep 2020 15:33:39 -0500 Message-Id: <8616d1a2485fee1ae71d27d7c598acf1c9e32abe.1601410890.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