Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1638912pxb; Wed, 20 Oct 2021 08:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlD6BuYNXDojhVDAQc7ZmgkkAOd1Oxz8/ePp2beFSV4BpyjOYH7+PwO0JAWOYKH7gclydt X-Received: by 2002:a17:907:3e87:: with SMTP id hs7mr151403ejc.403.1634745469237; Wed, 20 Oct 2021 08:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634745469; cv=none; d=google.com; s=arc-20160816; b=Y0uJBZ7vOd11tc5PS5w9r64MTcj3MVPyNdRbW8be/PZb//IUoABpZECRO/nTq4/PSj dqnGNrCXOYeeHHE3E5Mu2PdgHYeImWYxwfOOOcNNXfmiZzTdSmNnVEbPuPTqsROB/e6k 0Y43yGqccq7AEvX7dP/l93d9VrnLY+TYGuJR5DzEUgnvpjkrPEWu5sDvKQ4C8U/a+2Sa 2licON1VYdIMyJuikmY0FTP3ggmdZq8IyB1T9F4gZH+pNYFdFJVBObyTfFuUNW2N3kvu FLlbRZGcCipKTnEA7f3z4tfgTUHFjBQQ5GtV80+k3lLT209boVTlLcoYcF1W2GGuzFDN GR8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8/kHF6YsBF0VnFXO19L7hIupe8qJPMdaf854o+HCwfY=; b=JpsDyAoghBJYPxVNmIBKe2VAbiaOutmx0ggDwBXKdVPlmi06FpP8SMtlfXbQIuDo/S DBQ7MT3LbZsO75q/FbVJ2N6k4BKahrSi6aAoKhW4AEFoQVDgqi4n6u0nbknU+gt1K/fK X5wGc9Enk4B7BaJcf3X8hqaBQS7VvKhO68Luot3qnj2BeTZScrwLzDXX87b7b+c3kvXC b+rlWCPupaczN82WnOsCHNHEbw1cdiZpQ3LtADATQnAibwrIT2mKmDc7qzJh5hcL/0hm vxojKUBCP9cBonl23kznXbUjOd6DbDXOwgSTasakYgJIQTz4x0lC5nU7bZ5eyS02s/5T 6UkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=n3Sfk7DB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si4428006edd.345.2021.10.20.08.57.24; Wed, 20 Oct 2021 08:57:49 -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=@google.com header.s=20210112 header.b=n3Sfk7DB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhJTP5u (ORCPT + 99 others); Wed, 20 Oct 2021 11:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhJTP5t (ORCPT ); Wed, 20 Oct 2021 11:57:49 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC498C06161C for ; Wed, 20 Oct 2021 08:55:34 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id e5-20020a17090a804500b001a116ad95caso2775976pjw.2 for ; Wed, 20 Oct 2021 08:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8/kHF6YsBF0VnFXO19L7hIupe8qJPMdaf854o+HCwfY=; b=n3Sfk7DBuCbUQBAVU+XdZOeEDfYz0+/5PejRxjeF5kgf5dC2r5cMA+EjmkJK66yLPf Ohe+vhlvv8njUtj+4NTNp3b4O8rDqAJv0TNkOJOToWwmLLNvMrG3D8B0GF4KfsAay1M8 SVYw7YiBso2iMLaEYVb94B3+5O2eFZGC38pYqxN/vPBwzYdy7FS9NEXizjLh+zrsV6ns nU1oORRslCtBD+6Cz/Vi68/DPUpJFRUZw4fBJLVgruoDPvkkGM5mixxsNGicoqcx5M7D sxmyJnFtkbsWlTJAkn2rLQlnlOhlKdCyqBBwQGpBW7MOziZh7vRo0qAmCGcWrjhRM3aX XFpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8/kHF6YsBF0VnFXO19L7hIupe8qJPMdaf854o+HCwfY=; b=kSSD1Hn6LGyhpIO/l4Y7AT5SDA/HB15d1IJGk/Otsw6jIV5WYhgY5w/lUDmOKQvWPx xjQ4A92CXQJlYvSx8uAqgE/iJWAHPv7yVv1XyrCV9DrNbvhBHwN3VFNddK5+zFInIBlh 99ZITjynUqCgPRxT/62imLNYR9fMeRQa26go58zq39TjOl4+8Gte5gX8rsswAJNk3xJJ 09dMZcvxBUNE6yCUIHJzuFXt2TKolb+SqwSZuOQ0OiKKeulWo2nw+yYfX7x67ZW14pRr gbiuaKohZvd6vaeLvaeN5eHHfws/f+JmQzJ9k6XcGXIjCgIjz6dUUUdPNfYU3P0KZiGK dhQA== X-Gm-Message-State: AOAM5331qkPg3AJjxz7WEolIZe4CrqyfXZ9argx4apzljy7ldHAI4FGK nKhx4R1KM6ibq8mCjZsxjyevbYZzuZzUAmISoqLWoA== X-Received: by 2002:a17:90b:4a81:: with SMTP id lp1mr841396pjb.124.1634745333907; Wed, 20 Oct 2021 08:55:33 -0700 (PDT) MIME-Version: 1.0 References: <20211020013153.4106001-1-kaleshsingh@google.com> <20211020013153.4106001-2-kaleshsingh@google.com> <20211020113234.45657902@gandalf.local.home> In-Reply-To: <20211020113234.45657902@gandalf.local.home> From: Kalesh Singh Date: Wed, 20 Oct 2021 08:55:23 -0700 Message-ID: Subject: Re: [PATCH v2 1/5] tracing: Add support for creating hist trigger variables from literal To: Steven Rostedt Cc: Suren Baghdasaryan , Hridya Valsaraju , Namhyung Kim , "Cc: Android Kernel" , Jonathan Corbet , Ingo Molnar , Shuah Khan , Masami Hiramatsu , Tom Zanussi , "open list:DOCUMENTATION" , LKML , "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 8:32 AM Steven Rostedt wrote: > > On Tue, 19 Oct 2021 18:31:38 -0700 > Kalesh Singh wrote: > > > @@ -89,6 +91,8 @@ typedef u64 (*hist_field_fn_t) (struct hist_field *field, > > #define HIST_FIELD_OPERANDS_MAX 2 > > #define HIST_FIELDS_MAX (TRACING_MAP_FIELDS_MAX + TRACING_MAP_VARS_MAX) > > #define HIST_ACTIONS_MAX 8 > > +#define HIST_CONST_MAX 4 > > BTW, why is there a limit to the number of constants? The motivation was to limit the number of hist_fields that can be created for constants. These are also indirectly limited by the max number of subexpressions (3) and the max number of vars/keys that can be defined, so I don't feel strongly about keeping it. Thanks, Kalesh > > -- Steve > > > +#define HIST_CONST_DIGITS_MAX 21 > >