Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp381021pxb; Fri, 29 Oct 2021 11:36:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/1DVgoBJB8an29rB3sRzxZd60ZwgCnchoAX3IwcVN/VBrLLjW0Qz69HnXUV5/uPYe92qD X-Received: by 2002:a50:950b:: with SMTP id u11mr17172637eda.121.1635532565707; Fri, 29 Oct 2021 11:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635532565; cv=none; d=google.com; s=arc-20160816; b=VVj8gI7ZpJCXxRMiKqr37dVgPE/kk09SYbWDTYW4eXPDLKUd/uJpii6sRIK5A1QMKy oMhr4a52598PmXkomJUk5ydyTHpGLcz2vcdME9ZLDQV3RTylC8Ekv0N37UeTEuSQuPJr vMjimg+eqFSRodFncwBm9De/iaGeGOPFIxNABFR8i1gZlaImpwBFIhkx48PocgANOF7F sMPTW/QqgCi3eJdlYoRGuMxvj6tYKdVnAaxPmP1XBA8PoArjrDKYoctCqELq6wLpvWtP UzAa1ip9v/BNs1Bk195R7C9BOKHSxNn35hk+zFB9q9598w1WsU9NNwZkvLj88OsQmnYN cd2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:cc:from:subject:mime-version:message-id:date :dkim-signature; bh=f+Wd/uHd0tDpDpKgB2RrjDhKxBzjj44L//DvLwqhZG8=; b=vQivgl9VHe4aknT7TTRApAScfgBkbeFyXahLSxNe07GtOql5bg1XC1tlNMuCsB20yd areNOyHWnwqRA+8Qi21+EiZ83ExF9kGzqomWOpWlI+2bGof4UWHEeOY6bBJVYuFPlBl6 rau9tW5ofU1hhMVrBYKh22EgTE6cnrYswGTrYIe0amuHsaiRx+e3aSWr/n9Wu6bCzpj8 CzL6gZamwAe8kVF5KCtp4DN+c55z310Cwu5u+LI6RjFcc9Vrd66EGjo8JrwfgyfsxI2s fUQO0Sxe/ckkX/D12moFTZvBkraIXNZctrt9U60TaSzpEKUt1okAQ2jLgNtIfGCWM5+P ajNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="eW/VrmX8"; 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 l14si898984edb.323.2021.10.29.11.35.40; Fri, 29 Oct 2021 11:36:05 -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="eW/VrmX8"; 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 S229873AbhJ2SgO (ORCPT + 99 others); Fri, 29 Oct 2021 14:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbhJ2SgN (ORCPT ); Fri, 29 Oct 2021 14:36:13 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECF21C061766 for ; Fri, 29 Oct 2021 11:33:44 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id b5-20020a25a205000000b005c2150fc181so35034ybi.6 for ; Fri, 29 Oct 2021 11:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:cc; bh=f+Wd/uHd0tDpDpKgB2RrjDhKxBzjj44L//DvLwqhZG8=; b=eW/VrmX89o7qeFzNZregrH+8+eMzUZ0U8SJjNBa/0yKup6Ythv07w0FyKOgbVEfzWR JKtA6GrvkcPF3LMwNqVrtxvqOH5obrjYIAtNBYq3as/uUWdSMxmw13aN2LLPX+JiCIvT A1iAXxdIEydpaN/K5mWYeXe2rR78QtgXAu2O1Pb5Vk+XSuQRSD/gsj2w2T7q0z/SsjB+ eCbT1NKFDAIaixWMxSA0MSDoPOG0THPByA/MKXQd05lQw4JE0I6es4XsANLf2L1QLtgf dk91Rpczm8eP4X9N+Kt+EEUliNLNfxMgxXWpXAWzHJ82FuxhFPTQgrqhhzOqSpii+PE0 CMeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:cc; bh=f+Wd/uHd0tDpDpKgB2RrjDhKxBzjj44L//DvLwqhZG8=; b=NkVceKHMmfgiJpdR25SG7IYky0aEAp/D2HWjvgEdXd9y43bQ+IxIPgcujFQWDu7XKN pkDvOQUvLpoHZikp6/mFVJIRwkdgjNl/onrVOnss629RhkYXFA9wGiAHvcQsthXZqhyL +GDSF1b4eHHc9p3jdW3/EWgXEEwkU8m+k5cGYv6mzBZLb1A3xDIBlDJTffJYU6RKO3Mn ms2uySZWDLA3tf9tKLC7deOtHb0Ze6s9p+TvmxWMfhhqv1357qxrsIExCvD7dpCf6RPW LgBc7XTjbd63/a8wbOrXiBrYtcHKGdJoySZTA3oDjlyPv54JqbO2IMkYH8EiuIlVq1mo pdmg== X-Gm-Message-State: AOAM533PyBdiHbfOSy3nFmu41yeBAA7CC0O0Udk6E2v6SiZDORNmdDdG Q0s2ErBSHAdeYQw+o6EmsnmYohe6QvZ4DYMQpw== X-Received: from kaleshsingh.mtv.corp.google.com ([2620:15c:211:200:b03:1d88:1cf2:4973]) (user=kaleshsingh job=sendgmr) by 2002:a25:2c4d:: with SMTP id s74mr12650592ybs.171.1635532424022; Fri, 29 Oct 2021 11:33:44 -0700 (PDT) Date: Fri, 29 Oct 2021 11:33:26 -0700 Message-Id: <20211029183339.3216491-1-kaleshsingh@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.1.1089.g2158813163f-goog Subject: [PATCH 0/4] tracing/histogram: Division optimization and expression kselftests From: Kalesh Singh Cc: surenb@google.com, hridya@google.com, namhyung@kernel.org, kernel-team@android.com, rostedt@goodmis.org, mhiramat@kernel.org, Kalesh Singh , Jonathan Corbet , Ingo Molnar , Shuah Khan , Tom Zanussi , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds optimiztion for division by constants and updates the histogram trigger expression kselftests and documentation. It is dependent on the series at [1] and the fix at [2]; and can be applied on top of those after dropping the patch 7 in [1]. [1] https://lore.kernel.org/r/20211025200852.3002369-1-kaleshsingh@google.com/ [2] https://lore.kernel.org/r/20211028170548.2597449-1-kaleshsingh@google.com/ Kalesh Singh (4): tracing/histogram: Optimize division by constants (v2) tracing/histogram: Update division by 0 documentation (v1) tracing/histogram: Document hist trigger variables (v3) tracing/selftests: Add tests for hist trigger expression parsing (v7) Documentation/trace/histogram.rst | 3 +- kernel/trace/trace.c | 11 ++ kernel/trace/trace_events_hist.c | 117 +++++++++++++++++- .../trigger/trigger-hist-expressions.tc | 63 ++++++++++ 4 files changed, 192 insertions(+), 2 deletions(-) create mode 100644 tools/testing/selftests/ftrace/test.d/trigger/trigger-hist-expressions.tc -- 2.33.1.1089.g2158813163f-goog