Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4782949rwb; Mon, 31 Jul 2023 12:07:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGFJQm7b1JHs5aLr/rgeUOmNYFJBINooOpmcinn7ubtvUw8HTbkPQA/mCZPo2ZVCz/cSKzT X-Received: by 2002:a17:90a:c486:b0:268:300b:ee82 with SMTP id j6-20020a17090ac48600b00268300bee82mr9922966pjt.19.1690830442516; Mon, 31 Jul 2023 12:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690830442; cv=none; d=google.com; s=arc-20160816; b=DeZJU9IBDBnVNbQ74jrHhej/5hInwkj6XQAvkIVohYab8VeiBUSdZi6rwcRL7Hvr5q M/k7ZIHjueXi3vHYgNm5K0Ufutp2JtY7HlK6ZSlCg+kT+421iaZblVbGMOqRAui34wdz RZcSSIqCapmDjDrBKWJ5kOBHC+YraKhrQgRPXXMxits0g868AtximThjDR4rdmQFYlb1 fOcc9bPJLvxy2ZSpmHxqDlvVrrhj3Js0yNj+6g7jiX+k8uD2DwRzVIR4HeYXbtB8oK6c fl9gua+FU+NdLeBRbXIOWhsRao/NQ2qgzF9vU9zP2j2YOf0Xj3k/dC9APVh8BNQMeG9O dkZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=AI5ICh+KtDYiJ7owvwGxG8K23l39lKZHepcOY1Fhoa0=; fh=xYyztlBE4vjnuX+vioeEZ/kazBqn8ahYOSeU2UkK32o=; b=bsGEZeGLUb8lXefmYaznRbpHrYDyvUVT3/6Ta63M11vpu5SnQu2Q1l0xxME2ibiEPk lZeb37kwyE0mecRpP8LVh62JYwrpQqkoZwPx9idEEd6rzFx/B0+z3U/OQKeTWRE3mleg esusGFDf9zcfrComu7kciyjwLoWp+HfjhvQIjPkhWo/JQBqXJMo8s3Zpbd1ceqiV4c17 9ODjG3bHTjLoQ9qYWj880SGK7kykn/oFCKoJp+Vgrv9cweDc7Fpvm/rfRTFCWFQi9PnW at1l0jxJ+oGmbOBBIlAvtR/4Cg7hZoguxtSBR6k+/Qbk8HTcPGF+V/vnpafv3vXne5PB Osug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a17090ae01600b00262ecc1963fsi9223882pjy.33.2023.07.31.12.07.09; Mon, 31 Jul 2023 12:07:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229994AbjGaSRp (ORCPT + 99 others); Mon, 31 Jul 2023 14:17:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjGaSRo (ORCPT ); Mon, 31 Jul 2023 14:17:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C6EC93; Mon, 31 Jul 2023 11:17:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6695B6127C; Mon, 31 Jul 2023 18:17:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51B5FC433C7; Mon, 31 Jul 2023 18:16:55 +0000 (UTC) Date: Mon, 31 Jul 2023 14:16:26 -0400 From: Steven Rostedt To: Dan Carpenter Cc: Valentin Schneider , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, x86@kernel.org, rcu@vger.kernel.org, linux-kselftest@vger.kernel.org, Masami Hiramatsu , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Andy Lutomirski , Peter Zijlstra , Frederic Weisbecker , "Paul E. McKenney" , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , Josh Poimboeuf , Jason Baron , Kees Cook , Sami Tolvanen , Ard Biesheuvel , Nicholas Piggin , Juerg Haefliger , Nicolas Saenz Julienne , "Kirill A. Shutemov" , Nadav Amit , Dan Carpenter , Chuang Wang , Yang Jihong , Petr Mladek , "Jason A. Donenfeld" , Song Liu , Julian Pidancet , Tom Lendacky , Dionna Glaze , Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Yair Podemsky Subject: Re: [RFC PATCH v2 06/20] tracing/filters: Optimise scalar vs cpumask filtering when the user mask is a single CPU Message-ID: <20230731141626.1b180ab1@gandalf.local.home> In-Reply-To: References: <20230720163056.2564824-1-vschneid@redhat.com> <20230720163056.2564824-7-vschneid@redhat.com> <20230729155547.35719a1f@rorschach.local.home> <04f20e58-6b24-4f44-94e2-0d12324a30e4@kadam.mountain> <20230731115453.395d20c6@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Jul 2023 19:03:04 +0300 Dan Carpenter wrote: > > > > Nit, the above can be written as: > > > > > > > > pred->op = pret->op != OP_BAND ? : OP_EQ; > > > > > > > > > > Heh. Those are not equivalent. The right way to write this is: > > > > You mean because of my typo? > > No, I hadn't seen the s/pred/pret/ typo. Your code does: > > if (pred->op != OP_BAND) > pred->op = true; > else > pred->op OP_EQ; Ah, for some reason I was thinking the ? : just was just a nop, but I guess it is to assign the cond value :-/ But of course every place I've done that, it was the condition value I wanted, which was the same as the value being assigned. Thanks, -- Steve