Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2446074pxb; Tue, 12 Oct 2021 06:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwObQ+s9ALpL9nZ4knBzxAvbPzmKfQl9p9B7grRmRilJSzvDjx8+3NVxz0C6QZVHtm7ooI X-Received: by 2002:a17:906:ca12:: with SMTP id jt18mr32964548ejb.451.1634046677611; Tue, 12 Oct 2021 06:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634046677; cv=none; d=google.com; s=arc-20160816; b=RpzafbYvF9uBP4IXvP7/xtAvPkrISdmidoDx7bUs5ncERquWshXzavEpfgD/ZXyaIf fMf7dkdzGMfJvdXmBGiBUzKpl5mkkDmDKgs2ppNSum+CvtYdqrrwQJ0FRNh2N37TNsy2 D809vzpHYUo4j0x1pbWIj7EdfNCUfiEZK/rrtw6qt/eF+tBqrBOmOEc9DLaSn6vDhXrA Fw6il0fboMvCOCiW/PumC9mto0c/MnognSU19u5fOcz/bTlmhbZIZJxEVQpRfXJ05D6z clck/Oj9maBn1hKxG/L6Ywrb4msM8hpNGDjejM+G+3smaVAJ3kJH5rwb8yKvForhp+OL zW/Q== 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=TtFc0JuV24ypjjwvci53zlBoUfe2Ke5Lv8APXHJOdZI=; b=sLiVHY19iBow+7bJIqxQkJvG8NzaTctB55gb8JbEGjRWk/ZcXzpaRI5OZwjuIWTGmj PEhjuG/t6zB1DORNuSGowfY0oMCqwNHpRollUJR6wxAZOlcCMR2minSQLSi14uK94g2l YB8kcZHOhbZZNpzbpp6mmSEP7iXoJ19n0IypItOHsEmgHHwEVlZOcbWBodh3Y5ySjyC2 2T8NALOMAiUC4xCG0OHqi+0yVXf25/7lT+CSJKHPZ+0AiOM58pkL+dH6eIcS/kLcsSs/ aHn27ERorkH3cDj8fR2DVVRnRQgHveYpkxyAG+f2pUxM4T/36WZgEAzkIwWi9gm8L1jz sCtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si14132198edo.563.2021.10.12.06.50.51; Tue, 12 Oct 2021 06:51:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237043AbhJLNu5 (ORCPT + 99 others); Tue, 12 Oct 2021 09:50:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:37378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236678AbhJLNu4 (ORCPT ); Tue, 12 Oct 2021 09:50:56 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 46C6260E94; Tue, 12 Oct 2021 13:48:54 +0000 (UTC) Date: Tue, 12 Oct 2021 09:48:52 -0400 From: Steven Rostedt To: Heiko Carstens Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] s390: DYNAMIC_FTRACE_WITH_DIRECT_CALL support Message-ID: <20211012094852.7f6a59b8@gandalf.local.home> In-Reply-To: <20211012133802.2460757-1-hca@linux.ibm.com> References: <20211012133802.2460757-1-hca@linux.ibm.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Oct 2021 15:37:58 +0200 Heiko Carstens wrote: > This small series adds DYNAMIC_FTRACE_WITH_DIRECT_CALL support for > s390 and is based on linux-next 20211012. Cool! > > Besides the architecture backend this also adds s390 ftrace direct > call samples, and slightly changes config option handling a bit, so > that options only have to be selected. This way also additional future > architectures can easily add their trampolines to the samples. Makes sense. > > If ok, I'd like to get this upstream via the s390 tree with the next > merge window. A quick look at the patches look fine to me. I'll do a bit more digging before adding a Reviewed-by. One thing you may want to note, we are working on fixing direct trampolines that conflict with the function graph tracer, and have patches that fix it. I'm not that familiar on how ftrace works on s390, but you may want to investigate this, because if s390 has the issues that x86 has, where you can't have both function graph tracing and a direct trampoline on the same function. See here: https://lore.kernel.org/all/20211008091336.33616-1-jolsa@kernel.org/ -- Steve > > Heiko Carstens (4): > s390/ftrace: add HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALL support > s390: make STACK_FRAME_OVERHEAD available via asm-offsets.h > samples: add HAVE_SAMPLE_FTRACE_DIRECT config option > samples: add s390 support for ftrace direct call samples > > arch/s390/Kconfig | 2 ++ > arch/s390/include/asm/ftrace.h | 12 ++++++++ > arch/s390/kernel/asm-offsets.c | 1 + > arch/s390/kernel/mcount.S | 23 ++++++++++---- > arch/x86/Kconfig | 1 + > samples/Kconfig | 5 ++- > samples/ftrace/ftrace-direct-modify.c | 44 +++++++++++++++++++++++++++ > samples/ftrace/ftrace-direct-too.c | 28 +++++++++++++++++ > samples/ftrace/ftrace-direct.c | 28 +++++++++++++++++ > 9 files changed, 137 insertions(+), 7 deletions(-) >