From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0CACC64E7C for ; Wed, 2 Dec 2020 06:57:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 68F1022203 for ; Wed, 2 Dec 2020 06:57:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728678AbgLBG5Q (ORCPT ); Wed, 2 Dec 2020 01:57:16 -0500 Received: from mga01.intel.com ([192.55.52.88]:7461 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbgLBG5P (ORCPT ); Wed, 2 Dec 2020 01:57:15 -0500 IronPort-SDR: sFhi2PLOeMR2FqbWHROti706EjvwTpZO3GEGdyRAoWBc/pWEURBnyooTgz4Gn32yG8wqhKlE+G fVsRuJcGKAHg== X-IronPort-AV: E=McAfee;i="6000,8403,9822"; a="191177299" X-IronPort-AV: E=Sophos;i="5.78,385,1599548400"; d="scan'208";a="191177299" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2020 22:55:28 -0800 IronPort-SDR: 6zOGQ4OUp/IhOQcWblEiSI5CyWmGZlxJZG7LbmCkqPjOo++OgKlAe76NffYmKTf4R39RA1Z+eD k2DkgMWOYaJw== X-IronPort-AV: E=Sophos;i="5.78,385,1599548400"; d="scan'208";a="365157555" Received: from tassilo.jf.intel.com ([10.54.74.11]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2020 22:55:28 -0800 Date: Tue, 1 Dec 2020 22:55:26 -0800 From: Andi Kleen To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , LKML , Jin Yao , John Garry , Paul Clarke , kajoljain , Stephane Eranian , Sandeep Dasgupta Subject: Re: [PATCH v4 5/5] perf metric: Don't compute unused events. Message-ID: <20201202065526.GE1363814@tassilo.jf.intel.com> References: <20201202062646.3780002-1-irogers@google.com> <20201202062646.3780002-6-irogers@google.com> <20201202063657.GC1363814@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Can't this be all in a macro? It's still a lot of duplication. > > I'm still not a fan, but I think with a macro it wouldn't be too bad. > > Ugh, not a fan of macros. They expand to a single line of code and make > debugging hard. I'll do a v5 with a macro :-/ I suppose you could inlines with callbacks too, with one liner functions for the operands. -Andi