Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3405047pxb; Wed, 13 Oct 2021 05:28:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhQ6unJeMZyPi3qp65xDlH84l9Ey9dmFqSXfrHSRSQCgkXs6RHvIJ1s7GKU9ZQ7XXQkZ9u X-Received: by 2002:a17:90b:1101:: with SMTP id gi1mr12981277pjb.11.1634128106852; Wed, 13 Oct 2021 05:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634128106; cv=none; d=google.com; s=arc-20160816; b=0zwZM6EwqL15wqWZrKDTnRPquXt20NjMDVKf6vLMs3ZuUfWqsk7rApiMDUOXCVZql0 x2g6AvabmXmzC30YCJtn6BoJ6gpFgDj1e8iS0uusEk9OmfGoLus+KjHXRC/BuQtWBMZP XOcRUnQ0CzVdO24K69ssz2IKd8YWNGkeJmzuoTK/wNqQPAJzNegNQTUU/SeVb72LFvVl oO/ZL4t3Zty01fEtm9zH4cvw3EMdVlA1yljH1eEjAB97K72IFKijeT51yRqNM2Wk8Rsw OD3BuuKA4SWy1PMxqptivkZXjN6zfv9hW32KkuPNL9juZ9e9LspiL6Up8d1Zqs91V67I OqfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8YOBHg2cxN8ogGYoOT/g9xYB/0smdgUNl3MS2jFXUKQ=; b=HOwSmnia5VadwKQz4lpYloN48szArig3B5VGgmYRl8/MvVYTo4hKrVQNaPDwBiD8gp YM4OJFrAxlOFIIe9abXZlGf8hlCRZREU5v/gPwqRsWBxuktx9QlCp/uY90TA/ycFgagB kesbOiuxKNjgkSiOg1lLO9L6NOi4aC86nEe8EteAfA5dyODQj+dm1BNZcNuU6KZy750K cNA6zJtTXON+XT+r8u1wycWtxg71FgTXz2qNttiYAWqMxIjBeervFDkW10AD0NgAm0I9 FxsQcQuf4erVrl9aionMozqlAGZW9wGzStWsHiTIHJzwPEDlA4LCZro8Vxhxv7oewVwV jVxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BtgGU5Sg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si22438086pga.516.2021.10.13.05.28.09; Wed, 13 Oct 2021 05:28:26 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BtgGU5Sg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbhJMM1k (ORCPT + 99 others); Wed, 13 Oct 2021 08:27:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35136 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233169AbhJMM1h (ORCPT ); Wed, 13 Oct 2021 08:27:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634127934; 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=8YOBHg2cxN8ogGYoOT/g9xYB/0smdgUNl3MS2jFXUKQ=; b=BtgGU5Sg89iZZaxuHn9+E6juxRyitvV/Lppzy6B27WU9b/yxbU0b+/t039MC1fs/AlCIdn eEcaOkJWXyFSduVcj5w6WT9AJNBPVx9jmk74nL71FxuPsOHY2XD9XDze4TpjE480KKDH8C MEm1W+j/aCioiQYTjCc2aKDFKvewuZI= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-357-fu3g3y1GOPCqfoJd0HIegw-1; Wed, 13 Oct 2021 08:25:32 -0400 X-MC-Unique: fu3g3y1GOPCqfoJd0HIegw-1 Received: by mail-wr1-f70.google.com with SMTP id c4-20020a5d6cc4000000b00160edc8bb28so1839582wrc.9 for ; Wed, 13 Oct 2021 05:25:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8YOBHg2cxN8ogGYoOT/g9xYB/0smdgUNl3MS2jFXUKQ=; b=0ZHv3oldKF4EK2ORB7ZDdaBql2Z1bHNsQZBq38p25N/dJitXTDcj3jpGKSojl7YVfL Q5p+VWc0OlyCg86/GacY6DLEmSv//hCPoA9+44Y1FGhiAZuxsTZMvDxc2LDHjWe1WE7e h5jYKQ8HR3bzwkdVRmTFMZys8lfU2djERU6c4uSA4J+AZMWMHx7gUH7rt8WWP2KWqsb8 YW5H8rJJNjUfEZ23p37kty9szQ5EOWvbrNz9M6obXTGRNDVYdIlFKh3NYsjQsYQ4BOqf XcGTeXScQwTn6irCSmSKkJnbCxQgJJLmY8L3cGuTepYBb2zFwmMedE2AaWX/ld/Zne+v HSCQ== X-Gm-Message-State: AOAM532BQ8L6ecO0FK+BSH8ndwx4eqBVfOnxk6TigbD8Luruefu8nvhd wO/RYxYPm4zetnNPOCkjwPU+NzQ7WVAWETTvU+bcqB5XF28cY/P0aTmHnBhqmY9sWRgw70Cx6cn H2Vb299sZPmOnVhsc2KjgEHQ8 X-Received: by 2002:a05:600c:b5a:: with SMTP id k26mr12480609wmr.172.1634127931587; Wed, 13 Oct 2021 05:25:31 -0700 (PDT) X-Received: by 2002:a05:600c:b5a:: with SMTP id k26mr12480583wmr.172.1634127931404; Wed, 13 Oct 2021 05:25:31 -0700 (PDT) Received: from krava (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id m4sm5367957wrz.45.2021.10.13.05.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 05:25:31 -0700 (PDT) Date: Wed, 13 Oct 2021 14:25:29 +0200 From: Jiri Olsa To: Heiko Carstens Cc: "Steven Rostedt (VMware)" , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Subject: Re: [PATCHv2 0/8] x86/ftrace: Add direct batch interface Message-ID: References: <20211008091336.33616-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 11:01:34AM +0200, Heiko Carstens wrote: > On Fri, Oct 08, 2021 at 11:13:28AM +0200, Jiri Olsa wrote: > > hi, > > adding interface to maintain multiple direct functions > > within single calls. It's a base for follow up bpf batch > > attach functionality. > ... > > --- > > Jiri Olsa (6): > > x86/ftrace: Remove extra orig rax move > > tracing: Add trampoline/graph selftest > > ftrace: Add ftrace_add_rec_direct function > > ftrace: Add multi direct register/unregister interface > > ftrace: Add multi direct modify interface > > ftrace/samples: Add multi direct interface test module > > > > Steven Rostedt (VMware) (2): > > x86/ftrace: Remove fault protection code in prepare_ftrace_return > > x86/ftrace: Make function graph use ftrace directly > > > > arch/x86/include/asm/ftrace.h | 9 +++- > > arch/x86/kernel/ftrace.c | 71 +++++++++++++++--------------- > > arch/x86/kernel/ftrace_64.S | 30 +------------ > > include/linux/ftrace.h | 26 +++++++++++ > > kernel/trace/fgraph.c | 6 ++- > > kernel/trace/ftrace.c | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ > > kernel/trace/trace_selftest.c | 54 ++++++++++++++++++++++- > > samples/ftrace/Makefile | 1 + > > samples/ftrace/ftrace-direct-multi.c | 52 ++++++++++++++++++++++ > > 9 files changed, 420 insertions(+), 97 deletions(-) > > create mode 100644 samples/ftrace/ftrace-direct-multi.c > > FWIW, Steven pointed me to this thread since I posted > DYNAMIC_FTRACE_WITH_DIRECT_CALL support for s390 here: > https://lore.kernel.org/all/20211012133802.2460757-1-hca@linux.ibm.com/ > > Since Jiri asked for it: please feel free to add > Tested-by: Heiko Carstens > to all non-x86 patches. > thanks, jirka