Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2525314rwi; Tue, 11 Oct 2022 09:47:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LzKHpZF54rf0dhZygoP6HMiT1DjSkUhI55NntkFfQFUS5hCAZXFeIjhTyBKZMoU9ElQqK X-Received: by 2002:a17:907:2cd8:b0:78d:9c3c:d788 with SMTP id hg24-20020a1709072cd800b0078d9c3cd788mr12953295ejc.327.1665506848610; Tue, 11 Oct 2022 09:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665506848; cv=none; d=google.com; s=arc-20160816; b=Gq+8ZHnoBtP3fLzPS48gAxzes21KGcm1DIKYVgETGkowV6qghvgewe7Amrzruwah8a 3sxN8as35g5vESubGXXOG/r2ydGruvu5fjA+cmELW2rpbSf1g4TZChm4jG1wFVn81csB 8y+C43bK+Q0MhjTFXBkZwTspcnCfrEVPo6U/TSFYlnEWqcjXCIM5cZn6f3bMoHSg8GGD 81JSZYFwLewai+MT/s7olh6qMzYnWUH2+rut1uXVn37yONZOzBJDrlzpNEJ8hmsTMCIs Url7J5Z1HYOIb7AqsXWyGne/rHDKjRhun6aXL6bLqeAPqkyxHtEY3BOk/RGMV+mIzCwW q7rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=3pR097ooCx/8nlTemhEf/WDhel/4mmcsp3Jh/tnUV8M=; b=BOVuNrl+IpKU5qnTyztdjSedDDME6VsWi9QZQnsrAOiFnK2syqA8NVjNLVU9kVhXUz 9jzSFSG1bv+BREZpmAlxiJz92J5y3XoEd1TrqfDK2Lpi30b7WRjXvTi0wskS8t9j0Nfe 46YpRLfmHW4G+HbXhqxi0FN3EN5cQ+x04c/U8a8RNm1M5wn7GtYgM9SL8rzkErRe0DcD 6TSkUU7Jjnnz+zqy9YeOSNhDVLS80ddME59ynJQlAkFUvMpIxZK0k9ZlGllU/W/TQRRR Fz+PAT6R8+QouqBJqryGiepeI5AmzgpT6e0an5rmEkPRKdYragy6vd90Iwvx1CeQXe9r No2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A+FV3O0W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cy3-20020a0564021c8300b00447b4fdc29fsi12453124edb.82.2022.10.11.09.47.01; Tue, 11 Oct 2022 09:47:28 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A+FV3O0W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbiJKQki (ORCPT + 99 others); Tue, 11 Oct 2022 12:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiJKQkf (ORCPT ); Tue, 11 Oct 2022 12:40:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DA61A2866 for ; Tue, 11 Oct 2022 09:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665506430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3pR097ooCx/8nlTemhEf/WDhel/4mmcsp3Jh/tnUV8M=; b=A+FV3O0WHCmo+SwD1nwchs7jR+YgzkGCAwje9Xx3LqMKaKhNYS22PO9aAlAwPJn07I5J2/ kpV/PO/oqIwdn/6o7zffLkdhZI0qNV9qD7Fex2Kug3yazce+8QPRClHb1QT7y44M5ZDAjI W5+8s3e6cgGXu8OzkGbgwLWyS5n4UjQ= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-646-PJBF_Jf8M6qxJdN6e6OMtw-1; Tue, 11 Oct 2022 12:40:29 -0400 X-MC-Unique: PJBF_Jf8M6qxJdN6e6OMtw-1 Received: by mail-wm1-f71.google.com with SMTP id c3-20020a7bc843000000b003b486fc6a40so3914618wml.7 for ; Tue, 11 Oct 2022 09:40:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3pR097ooCx/8nlTemhEf/WDhel/4mmcsp3Jh/tnUV8M=; b=Y0drcdPQXmqhzV6iqur46Ba8eDvNKA7SjEAUz5FHGwv6ucIv7SxtL980WY8V1LUq4h /KPe95zYQQQzC/RcpF2fYDytUwykK8bGMJEUmpHRCgIg7HfNKHYuKLv8A8RdeGwL24bk peGfNFQZ+ZVSEEGT/jDCheaLkSKLcta4qRVtefkywbR7M02orAnS+fwZTZAk5hKB5qP4 /8EfyCWFYU8YHqyqbptXDJAMpDEbF32qC8y5vaf7nRPD4sraNTM5Ro4XR6YwLUvjse7r +mK57PMIZGPkg25evGTPkqjewHBy2wo2VvqR7Vh2cJifRrj4OXFJnFz1bNcFaHPh9VLm l4zA== X-Gm-Message-State: ACrzQf1PWL6M0vjSbZZ7yJF4J6IQE+6VnsoVIFwH6Ts4rhmLg+J6GHLC JvrfrZReHP6OHapcBAbI/fb+amojx2GdRn5YPPA7kGVkrdJvDOF2HVMBRoJtHTsXr0gfn0e9sNl r81aviSjPoLKYMSTI41tm6yXQ X-Received: by 2002:a5d:59a7:0:b0:230:3652:1aa with SMTP id p7-20020a5d59a7000000b00230365201aamr8455606wrr.308.1665506428135; Tue, 11 Oct 2022 09:40:28 -0700 (PDT) X-Received: by 2002:a5d:59a7:0:b0:230:3652:1aa with SMTP id p7-20020a5d59a7000000b00230365201aamr8455591wrr.308.1665506427912; Tue, 11 Oct 2022 09:40:27 -0700 (PDT) Received: from vschneid.remote.csb ([104.132.153.106]) by smtp.gmail.com with ESMTPSA id y3-20020a7bcd83000000b003a3170a7af9sm7900578wmj.4.2022.10.11.09.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 09:40:27 -0700 (PDT) From: Valentin Schneider To: Daniel Bristot de Oliveira Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org, "Paul E. McKenney" , Steven Rostedt , Peter Zijlstra , Thomas Gleixner , Sebastian Andrzej Siewior , Juri Lelli , Frederic Weisbecker , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Marc Zyngier , Mark Rutland , Russell King , Nicholas Piggin , Marcelo Tosatti , Guo Ren , "David S. Miller" , Douglas RAILLARD Subject: Re: [RFC PATCH 0/5] Generic IPI sending tracepoint In-Reply-To: <3e680bb9-9896-3665-dd59-4f2e6f8205bb@redhat.com> References: <20221007154145.1877054-1-vschneid@redhat.com> <3e680bb9-9896-3665-dd59-4f2e6f8205bb@redhat.com> Date: Tue, 11 Oct 2022 17:40:26 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 11/10/22 18:22, Daniel Bristot de Oliveira wrote: > On 10/11/22 18:17, Valentin Schneider wrote: >> Thinking out loud, it makes way more sense to record a cpumask in the >> tracepoint, but perhaps we could have a postprocessing step to transform >> those into N events each targeting a single CPU? > > My approach on the tracers/rtla is to make the simple things in kernel, and beautify > things in user-space. > > You could keep the tracepoint as a mask, and then make it pretty, like cpus=3-5,8 > in user-space. For example with a trace-cmd/perf loadable plugin, libtracefs helper. > That's a nice idea, the one downside I see is that means registering an event handler for all events with cpumasks rather than directly targeting cpumask fields, but that doesn't look too horrible. I'll dig a bit in that direction. > For rtla I was thinking to make a new tool to parse them. and make it pretty there. > > -- Daniel