Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1610299pxb; Wed, 20 Oct 2021 08:25:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzkiNikUtQnpsnDQnjyBYwJaXWfG92DbRlNqmTyV1Izhi3YE6hU+Gpi24L2/zujQ0BUDY0 X-Received: by 2002:a17:902:7246:b0:138:a6ed:66cc with SMTP id c6-20020a170902724600b00138a6ed66ccmr191048pll.22.1634743527828; Wed, 20 Oct 2021 08:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634743527; cv=none; d=google.com; s=arc-20160816; b=bwE8ygtgRW50zTqMg+UPrsYDYwe2eH015hyj9xTxU+Gt8/1cJwOcH1rg1TNMQdlX+r Ps2/Q1pkyQ6QDcRZK2o8JRObobAsU3WEKU0B0RYgGyV7ID4pYkeH4KFIXpu0UveT0FiJ vYvWKxcPh6/NKoP+jru6ri4BGIyLdIraUpos1H4idyPihJlgWp2hn0y1fsAbnH9JCCa4 TvqJx+NWRSqkk+NMvgVd4SkLF6jgOsmJROFm80Pfzcga+yBEhNcnTg6DS0Ru6GVEK2tY YaU0hQxSBdPBFcDcQmI4t6fNeVArP4k0FEY+ma7nNV6AUkjbEtY52fiXIqMyw60Vt2Fp Awew== 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=9G/tgOu2U++uQPjqj0kkd4nYpGihFaCQehhixgnnnLM=; b=UUObbYl6HoGM4GRTAzCb5WNRXjhU8ntzNaDZj3HaDQp0fA0Z3u7zrvJh4BfbdXeNfo AGOEzgTb8Pdsf9+pk8BppwLyM1Iciao1l+4DwZx4QVhyHsHVR/P+JiyIc0JctZXK2+a4 Abt15qE15tx/GUsitsyfH+4OwjMZdAYkOq79QR4Y3H0VH5obGxB3SqA9Lt2xqQuxudnq sHfDNFpArXFktvw8C97JziHQTbnnMK+Vh8Dhq/RV54KY2TTY7m7NUyGYZl6W+VAWB/xQ BIZPdATD3cKmaTpJpuVaBJmEgY23rlK9oME0s2b5+/wjSCUX3uEc1o0pyLeRHubgDASi Tm1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FdohNWF0; 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 j16si4501385plx.269.2021.10.20.08.25.14; Wed, 20 Oct 2021 08:25:27 -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=FdohNWF0; 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 S230192AbhJTP0A (ORCPT + 99 others); Wed, 20 Oct 2021 11:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbhJTPZ5 (ORCPT ); Wed, 20 Oct 2021 11:25:57 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21063C061749 for ; Wed, 20 Oct 2021 08:23:43 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id v8so3228634pfu.11 for ; Wed, 20 Oct 2021 08:23:43 -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=9G/tgOu2U++uQPjqj0kkd4nYpGihFaCQehhixgnnnLM=; b=FdohNWF0lePfGiRKbumHGZsAGaLjjDCPzFQFJ5ok+qZV3MvXQXsTce3m8nzuOrUnOr HttiXl3VBBlg2SEnXtxSdhhz7nt7n32i+kurO9oz+oBp7/JUPLTfrw8bVeIzI8il5S7y +Su1eI0BuwtFDay0O0erLFi3b/nM3KpBQZVvhdsPE7Gp/4mGxEFqpqGmj9rBVgryz6BN SaPNpOoiKt0kp6fO0TlMNeoK0ocPWI1b1P11Y8XNcreX1k1KK3F385FOV+dWpZEiNGVx 5/jrgrsNrsP+j27vJioi2jBsc8BHASyJCxdF9Sg4ljAVZm8zss22Mwm4hbaf1v0w9NTN w+JQ== 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=9G/tgOu2U++uQPjqj0kkd4nYpGihFaCQehhixgnnnLM=; b=lZqrUTa3u9SY8nuC9s3rt/uHTQvnfIy+959jSlqeK0y5v9MasVkWGSJ+PXZEmnmjt2 DEQeFhqpj+kpQbF4qpBbVZvxyZfxiInErrZ/n/RrPK+nlyjlWd8gdaPTFyGQj9F+QZTZ bx40JwbpeCLC+H3cgExC/sPwKXovhL8YnoRNJt7xDd6ojBRcwO0/wDmFDVbhyw+/cOaH M3M44tOMKmno5OAXQzKp7kQXtipH/beMmtt74m0p7auUh2hi4U6Z5/CM7aN2rI2u7IgW 1W3UbJUmCQWNUO4om39hB3G9dEzpUDk+Ldsfx1CWpWMjJc/onZ2KoMVUyqUspvtO3FIY 0D8A== X-Gm-Message-State: AOAM531jWwMxteCUS8VrjVAlr0KPrZdJfknCS+LDdmfXMbqfX2vq9SM4 s8wRxuazTfh/kf0Mx20CXTsgKi79l2yx7Re4ZA8hxA== X-Received: by 2002:a65:6499:: with SMTP id e25mr91668pgv.146.1634743422326; Wed, 20 Oct 2021 08:23:42 -0700 (PDT) MIME-Version: 1.0 References: <20211020013153.4106001-1-kaleshsingh@google.com> <20211020013153.4106001-3-kaleshsingh@google.com> <20211019222756.1fde436b@gandalf.local.home> <20211020111301.0032a43d@gandalf.local.home> In-Reply-To: <20211020111301.0032a43d@gandalf.local.home> From: Kalesh Singh Date: Wed, 20 Oct 2021 08:23:31 -0700 Message-ID: Subject: Re: [PATCH v2 2/5] tracing: Add division and multiplication support for hist triggers 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:13 AM Steven Rostedt wrote: > > On Wed, 20 Oct 2021 07:54:59 -0700 > Kalesh Singh wrote: > > > Is it worth adding something like this for the multiplication case as well? > > No, multiplication is a pretty fast operation, and the added branches to > test would cause more overhead than what you would save. But, division is a > very slow operation, and I believe that even with the extra branches it > would still help. > > If we do this, it should be a separate patch anyway, where we can actual do > measurements to see if there was an improvement, and revert if not. Sounds good. Thanks for the clarification Steve. - Kalesh > > -- Steve