Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2234444rwd; Tue, 13 Jun 2023 23:10:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mHCsdTyhUmu7lkpLTLNZpvft8uE+URGZ+R9Az1ckz+55FajjgrclVWWiaxnOogC8rgUhm X-Received: by 2002:a05:6359:c20:b0:129:c27d:9f1f with SMTP id gn32-20020a0563590c2000b00129c27d9f1fmr8166753rwb.5.1686723034402; Tue, 13 Jun 2023 23:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686723034; cv=none; d=google.com; s=arc-20160816; b=eoYZrbcp0dSBS6s7htTSdAYnrpkxe83YekoPelH//IDdJAjRNpBwmCh2+p/KXVhUVV 51ibF6Cz3iEKaqLwJj2qLrNGTWR0kPk5RzZ7+fJD5Xih4f+2KDgmO1HSUl0Y3WVtvjNn 48/SifclBMBSMLfoKUB+BRe/eBxXNAqfDgCKkETL9XYwmF3iJPGgSH1O838bqufQMUo4 dk5/wt6URdqvA+cUz0ogk3XHX5/XsHQSZpQ6xA150w4oG0NFS0uW3n3nvfLs+LEAQ29g MfwVQnmL00b+q+SRzQ5TB5RYYXNVFq9sdV0MUv1KKP/iIWLxfq2kIxUNMOaM+DCLYRsk Fqvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NcLO5Brc+F9RY3h/Vkhh4dPuhU1v5kJgJ/964zE6Pnw=; b=ze6Pp+9bdxQdHvOwN524rIYUhK99sANkZhp4w6VAXevl1cEhGGxya3+GsUZ21bhQuD jGPciZK5F3HnzdtTV3WcZFDRTOMf0/tYngfORVw105hjEAYExhTmh2KDxcAHOHO2PUim 0YjBIFf92deRU0DGOkpo/viyStQMkVh0cU/eCQKwstd9yWKMJpqYvAK8Lc6MEEAT17oh AgMQgOm/66X01N6Y+DQ68jD/3iFlSqlIaaWSqwlQHDRtbrT8URXAdGSinZZveeIEbNcc 08WkxWe0QqxGoclEg6KPXBROlwUvtdz42OZ1S9XiXL9HwC+LaozLjiAWD9o8UeML85iN Qyhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FL468Xu4; 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 o22-20020a637e56000000b0053eee173732si10089581pgn.161.2023.06.13.23.10.22; Tue, 13 Jun 2023 23:10:34 -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=FL468Xu4; 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 S242515AbjFNFRR (ORCPT + 99 others); Wed, 14 Jun 2023 01:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241791AbjFNFRP (ORCPT ); Wed, 14 Jun 2023 01:17:15 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A22710EC for ; Tue, 13 Jun 2023 22:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686719795; 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=NcLO5Brc+F9RY3h/Vkhh4dPuhU1v5kJgJ/964zE6Pnw=; b=FL468Xu4pItE9mCVElOJdYdKTXSW6WDrRZehtjaCHGf3csnqjrcrDP2H7Z0bKFJeEA9jjr z32oeFeMM7/9iJqoQDchtk+F8ZHOdgh/kdVlV+Ttg6woyLexmwjirsdf2NEcXSmbjkROW+ AAkhPJ/HuuVE6I6ALttwvcpl29Z1CkM= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-103-RufbEmWuNSOTgOVbuaQzcg-1; Wed, 14 Jun 2023 01:16:33 -0400 X-MC-Unique: RufbEmWuNSOTgOVbuaQzcg-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-3f9a629fdebso24554891cf.0 for ; Tue, 13 Jun 2023 22:16:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686719793; x=1689311793; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NcLO5Brc+F9RY3h/Vkhh4dPuhU1v5kJgJ/964zE6Pnw=; b=T+9WSwZ5UvTPszKxEZf+Ab/JbvgraGGXaBxhmu39YZzToL3VRHOI7xeA057OtcOudp 8dXW8wYbi5PSgCYkU34W28o5/4jGYMG76YlYui+RInArVYkOXcxcNlksvC0FPOY0dIGL jb/GxNCAnXXNewVNs+GdZtZunyU43vaAqJyy0StnaC6YcNXe04R0quhubRbjw7Ifvviz W+ui5/iI23ZcBU2yPhVa9n4tHqzn041km63Cb7MUkAlpdovndl4qbOBH1v7bltqCRs43 WId40W594UwLTCwwHu5GehfKn8TbR45hMS3Rc5mGdbr8nFWVZi2BOtLdELsXNjjwzhyU eTqA== X-Gm-Message-State: AC+VfDyr1IvcXUeYizEmWI5bgDy5dvVJEWpEn17jegEprqbVwhPVu1Wd ApMx/NXxm9fSb6iqYgpIyilLlfFhXgP+AfqiTsNnJJA7c6bxpj5hPLjduV2IVfKRnIzkCYtqUZO RDNpo4loYQX2PrgbNlImuisf4wyb95jRcXXJXOPrQ X-Received: by 2002:a05:622a:19a0:b0:3f6:a92e:7f47 with SMTP id u32-20020a05622a19a000b003f6a92e7f47mr1172801qtc.13.1686719793419; Tue, 13 Jun 2023 22:16:33 -0700 (PDT) X-Received: by 2002:a05:622a:19a0:b0:3f6:a92e:7f47 with SMTP id u32-20020a05622a19a000b003f6a92e7f47mr1172789qtc.13.1686719793248; Tue, 13 Jun 2023 22:16:33 -0700 (PDT) MIME-Version: 1.0 References: <20230515183045.654199-1-leobras@redhat.com> In-Reply-To: From: Leonardo Bras Soares Passos Date: Wed, 14 Jun 2023 02:16:22 -0300 Message-ID: Subject: Re: [RFC PATCH v4 0/2] trace,smp: Add tracepoints for csd To: Valentin Schneider Cc: Thomas Gleixner , Sebastian Andrzej Siewior , Nadav Amit , Chen Zhongjin , Daniel Bristot de Oliveira , Marcelo Tosatti , Steven Rostedt , Masami Hiramatsu , Peter Zijlstra , "Paul E. McKenney" , Juergen Gross , Yury Norov , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 14, 2023 at 1:14=E2=80=AFAM Leonardo Bras Soares Passos wrote: > > On Tue, May 30, 2023 at 7:36=E2=80=AFAM Valentin Schneider wrote: > > > > On 15/05/23 15:30, Leonardo Bras wrote: > > > Changes since RFCv3: > > > - Split the patch in 2: entry/exit and queue > > > - Fix 'struct __call_single_data' & call_single_data_t alignment issu= e > > > - Made all TP_printk follow the same pattern > > > > > > > One bikeshedding nit I have is I'd prefer to see the csd_* events in a = csd > > trace system, to have a sane nomenclature. > > Oh, here you mean the file name? (ie: trace/events/smp.h -> trace/events/= csd.h) Or just -#define TRACE_SYSTEM smp +#define TRACE_SYSTEM csd ? > > > > > Other than that and the other comment on csd_do_func(), this LGTM. > > > > Thanks! > Other than the above question, it should be fast for me to send a v5. > > Best regards, > Leo > > > > > Changes since RFCv2: > > > - Fixed some spacing issues and trace calls > > > > > > Changes since RFCv1: > > > - Implemented trace_csd_queue_cpu() as suggested by Valentin Schneide= r > > > - 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 function= s > > > > > > 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 > >