Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2433790rwd; Mon, 15 May 2023 11:36:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4as0/hKUbQOZA1seGaYJYi4VSrFsUELG4ASAg3IWOh3nokuQqf6jVLAplU8qDxJWsDG6Od X-Received: by 2002:a17:902:8a95:b0:1aa:cddd:57d8 with SMTP id p21-20020a1709028a9500b001aacddd57d8mr32385775plo.30.1684175772860; Mon, 15 May 2023 11:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684175772; cv=none; d=google.com; s=arc-20160816; b=mWzSa7IUS3JxI5Weu7RDhNvNJoD7S6uUay0YiV48O5rfoVlCK2rETy0176+pZ706yr S85WzCgLPnc9zSE84sUqG1t24C20t8EC+8QmYA81MvuTB+p7VDDoqH+Z7Gxwpt1oAYD4 FlTLtOFyTXCAranohALHm6TAGnJFcnlZX+XaJ5kMXq9ONQIK93bPAXd8AbyZz3bd1+aD k2mPSJ5VKVlcVs2ST9FSzProu2bfIh6MM6XrkYMGaPsEfTz9UfUriGD9tu7/aw+aPfeI LsilWB4Laq9FU2CTiplCMtUV/e8JkodSQW0PU38qN2fUuJ8YjvQds53mVKQO8jSiNa53 Semg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=MOj6t1AMbPCvGUuEBcmtwWAQ86XL4E71akbkpHomH5I=; b=z3KrcTwYR8/HQwxcxVxKkpM9NjCA/jHv9VydMUVI0ZTj+zdc+oLOvpRN2iKyyOy1or pFlpTX/TLWBu0Alg2d1OEogF9MCDHF7hZzUt7rF5Y1LKH4OakWb0vayy21pSUtf+8RNI qvKSH/+s3m2J0F1s0nzxefGCt/Ssh2KKqzTZAJyXNpoHaMs2PSsA149k+I+4Jx/qIvMC xcy5ME79uHOG6ToRhY/u+fNyVZ938vPKVQ6MSw/HFchxilgdx9araVjQ9q2jjXm1WmrA 0yoaUPcDBXCYGAjZzfqadR9wH8cZjNK1mqYwYtw+yySaxa8kbQTIYWIgMDPEOBybtQTN ez6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TBAqVaqa; 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 m9-20020a170902db0900b001aaeed1a0e3si17759428plx.487.2023.05.15.11.35.57; Mon, 15 May 2023 11:36:12 -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=TBAqVaqa; 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 S243306AbjEOScM (ORCPT + 99 others); Mon, 15 May 2023 14:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236831AbjEOScI (ORCPT ); Mon, 15 May 2023 14:32:08 -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 DF0AC18C8D for ; Mon, 15 May 2023 11:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684175480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MOj6t1AMbPCvGUuEBcmtwWAQ86XL4E71akbkpHomH5I=; b=TBAqVaqaBxXm/Zv27rpmhyGJgPBSVaHigovM3fvqYvg867mMxccOdhUzfH6j5cCmFbpI8+ 2N+4Ltem/wEH5Ku2PGZMR9Cq83b3d3HTnkJgxIhX8o7wgTP5yBhxevDOUv8KvjN39TdwxL As1dmf7bD3zMGwNW5yW8Rjp+aI4l8Bs= Received: from mail-oa1-f71.google.com (mail-oa1-f71.google.com [209.85.160.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-150-vLCJX4f6M_mACQiA1D_b6A-1; Mon, 15 May 2023 14:31:19 -0400 X-MC-Unique: vLCJX4f6M_mACQiA1D_b6A-1 Received: by mail-oa1-f71.google.com with SMTP id 586e51a60fabf-1877e4dff8aso8561506fac.2 for ; Mon, 15 May 2023 11:31:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684175479; x=1686767479; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MOj6t1AMbPCvGUuEBcmtwWAQ86XL4E71akbkpHomH5I=; b=YNUFrQX4BjG7Qgd5YOc+b5xhOtL10VKV6k15F9Ej8xptffDAoN9eOnU7/bP6fc9SxF UsTWj8IWxbArfZIetAlqti/crz0zo/mL8zfhc96tWdy8dAVt4767moEQjvDh6rIVXcvm QSLy8tYgIF4iIZyXNfzR0c2DLAqRkCW53p0QvuzTXZa6Pig+QqPOyU/tV2/aKpq3RY1E bjLY9Oo3kV59Q38W3Wq9uj2QlWqgl6yAdzNP3kohQ2uOIRuyrxrVIwTlPgmqksheCZ16 zzbeuBX3R3XwPARhLTgNmYHHm4qtH8w1RHnjMpSTZ1Vo4BqKSt5ftKDLWYjFalthIl7A LBIQ== X-Gm-Message-State: AC+VfDzeXS204+mtcP0CsPUJTis12TI5YTqDMw4z/q9HSHZxj8ItmocM +hjdi66fmzxbY5PiPxUvy8FacikbnNk006eWTSE19n1QzArqctK8s0oZrHeoyM0ls45ktGoealh ApzGFeh0btE0kw9m0+ZIgRoyy X-Received: by 2002:a05:6870:6255:b0:195:fe38:3b91 with SMTP id r21-20020a056870625500b00195fe383b91mr12443389oak.40.1684175479079; Mon, 15 May 2023 11:31:19 -0700 (PDT) X-Received: by 2002:a05:6870:6255:b0:195:fe38:3b91 with SMTP id r21-20020a056870625500b00195fe383b91mr12443378oak.40.1684175478802; Mon, 15 May 2023 11:31:18 -0700 (PDT) Received: from localhost.localdomain ([2804:1b3:a803:46cc:5b68:5c23:dd7a:8cb3]) by smtp.gmail.com with ESMTPSA id ea20-20020a056870071400b001964dc3dadesm6094075oab.45.2023.05.15.11.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 11:31:18 -0700 (PDT) From: Leonardo Bras To: Thomas Gleixner , Sebastian Andrzej Siewior , Nadav Amit , Chen Zhongjin , Daniel Bristot de Oliveira , Marcelo Tosatti , Steven Rostedt , Masami Hiramatsu , Leonardo Bras , Peter Zijlstra , "Paul E. McKenney" , Juergen Gross , Valentin Schneider , Yury Norov Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [RFC PATCH v4 0/2] trace,smp: Add tracepoints for csd Date: Mon, 15 May 2023 15:30:44 -0300 Message-Id: <20230515183045.654199-1-leobras@redhat.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 Changes since RFCv3: - Split the patch in 2: entry/exit and queue - Fix 'struct __call_single_data' & call_single_data_t alignment issue - Made all TP_printk follow the same pattern Changes since RFCv2: - Fixed some spacing issues and trace calls Changes since RFCv1: - Implemented trace_csd_queue_cpu() as suggested by Valentin Schneider - Using EVENT_CLASS in order to avoid duplication - Introduced new helper: csd_do_func() - Name change from smp_call_function_* to csd_function_* - Rebased on top of torvalds/master Leonardo Bras (2): trace,smp: Add tracepoints around remotelly called functions trace,smp: Add tracepoints for scheduling remotelly called functions include/trace/events/smp.h | 72 ++++++++++++++++++++++++++++++++++++++ kernel/smp.c | 41 +++++++++++++--------- 2 files changed, 96 insertions(+), 17 deletions(-) create mode 100644 include/trace/events/smp.h -- 2.40.1