Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2511327rwi; Tue, 11 Oct 2022 09:36:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aPiv638RM+9X+7Jjo4QRd+JgcB4QinNM+PR9L2xu841hbOJy6MQHswe46R6KUZaKDdIIU X-Received: by 2002:a05:6402:4308:b0:45a:1af2:ed30 with SMTP id m8-20020a056402430800b0045a1af2ed30mr22778695edc.342.1665506201143; Tue, 11 Oct 2022 09:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665506201; cv=none; d=google.com; s=arc-20160816; b=D8GXDHYO51gxPHkE0mMHOqQLHvkU+mTTa9rEs2aSnyow1t6AxiyoZNJsEFWMILv67e kSbQKxSSeDGOl3/agMd4UgL4rrOmI8bJOQRi6QCLfdpKtJdYMbV1p+NLKW0pTKMXER94 wyZaE1gt0/j63QxjPx4Qn0CBK53k8hq55vMeNXhOr1XBgpG6nLD0YE9efHRiyUPXAtDa p0apQHIy1+sikjxVdB06wAQ+gAdv3efbM+QDvED9o0WVcjY3hEKdNGG7jpIHzGi5efep B5ieQOW4YMqHcJfv3ywHrY/fJ56X6ukRav/bAxWs9X8KepUr3pL8C07r2kF1FVDlaPXn 0lGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6gv22bmoTax0J0zhnmYTJUdzNvY/rZYRIc0hd8rouMg=; b=eKykTCnqWs+DE8F8R1RJnlR7jgJX3XG9wl0HGZ4iDgpWh7Q1Cp0lw84hxWGw16LXQ9 6QMyWSKvzGokAq9XG3TEQtnIv6DRO68preGVRrmFwq31RqM7ExU2pUq0A2MnqaLPjnEc hVm2juiVGL/z6ssGSqUk4OVdVWMZtANv63dJO2mwjRpkXD0Ox/iaI41KnpQ02eJeNbno XjjfeB4UAljtqTzR1tCCItagnI+q14b5gbsqnDY090wxVaUbWmPyjFQXApQ0vVYGr9km D9gu4/wDo0wsSQuNlDSbjh5CtC8iyGzPhTAUvd0tt1gkbOhKO8q9z8pZtImNjQ07WQPm 66/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h5iy8Yxi; 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 z17-20020a05640235d100b0045957575facsi14916510edc.19.2022.10.11.09.36.11; Tue, 11 Oct 2022 09:36:41 -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=h5iy8Yxi; 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 S229677AbiJKQWP (ORCPT + 99 others); Tue, 11 Oct 2022 12:22:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiJKQWL (ORCPT ); Tue, 11 Oct 2022 12:22:11 -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 E0E8195E5D for ; Tue, 11 Oct 2022 09:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665505328; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6gv22bmoTax0J0zhnmYTJUdzNvY/rZYRIc0hd8rouMg=; b=h5iy8YxiHkC4Kaa6hKdsVflcNHsfyFKnRCMfGVAb6j4l+J6CC+IO/MO0oYNyJuBeXQy2sL 4uRVxYLTlT3dfO5HE9nlYFAz6+2B1j+BcEcKdmL6EogdvQvzsR6dbn1F12zBI/qvnCKJ9W 4lRmLYgtG0lfeQg/+i46P0neW2oLejY= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-478-7R9q59dIMeWKHglu001BfA-1; Tue, 11 Oct 2022 12:22:07 -0400 X-MC-Unique: 7R9q59dIMeWKHglu001BfA-1 Received: by mail-ed1-f70.google.com with SMTP id b19-20020a056402351300b0045c129ed62cso4713236edd.6 for ; Tue, 11 Oct 2022 09:22:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6gv22bmoTax0J0zhnmYTJUdzNvY/rZYRIc0hd8rouMg=; b=W9OW3638Tu0D64vJu861YZB7r/EdzlhrNXRWuKo+6uj14bdb+kdzXNkiaMvxxZwvJR gAQCuOM+PIt4jvmu/1K90rBUVrH485RUsjAvyp4SOBehkbZqI63/M5IN6p804abeCGE3 gWixtX7PpbW9jDJ2gGgsOAbeCUP89bmeJr07hFA4y5XyL2dWZaZA18QRTPetH+2c2vwn 98sYm9AbM3cNltXENsncruQHp0lKuxCI1HcP/qLgW+DVv/zsc9xkyLJjogpQ/A9KFmuX 4hc0CjeoSGZzRgHFNVc9JxBTwbfYL+LoQXRZePaZ/CbCkYwlHD1LkWeurAXzuoXHUXfY pa6A== X-Gm-Message-State: ACrzQf2aUwSxkTh5g5hkcESwmpfjikCCXtzQnpSZIMMtWaTuK+2n9RPj EWEVG+QnZDilthvBxkluZ+pQGuCa6Lc3wgwDJqTWbSMDgw/GlTsXkfK1WfN5gNyQpW9t9L6fLNh 41+CSBvpDhCMeLaqvsMic4E1B X-Received: by 2002:a17:907:2712:b0:78d:a223:729b with SMTP id w18-20020a170907271200b0078da223729bmr11697142ejk.443.1665505325961; Tue, 11 Oct 2022 09:22:05 -0700 (PDT) X-Received: by 2002:a17:907:2712:b0:78d:a223:729b with SMTP id w18-20020a170907271200b0078da223729bmr11697097ejk.443.1665505325743; Tue, 11 Oct 2022 09:22:05 -0700 (PDT) Received: from [192.168.0.198] (host-79-47-205-133.retail.telecomitalia.it. [79.47.205.133]) by smtp.gmail.com with ESMTPSA id xf13-20020a17090731cd00b00730b3bdd8d7sm7273113ejb.179.2022.10.11.09.22.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Oct 2022 09:22:05 -0700 (PDT) Message-ID: <3e680bb9-9896-3665-dd59-4f2e6f8205bb@redhat.com> Date: Tue, 11 Oct 2022 18:22:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [RFC PATCH 0/5] Generic IPI sending tracepoint To: Valentin Schneider 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 References: <20221007154145.1877054-1-vschneid@redhat.com> Content-Language: en-US From: Daniel Bristot de Oliveira In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 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. For rtla I was thinking to make a new tool to parse them. and make it pretty there. -- Daniel