Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1597035lql; Wed, 13 Mar 2024 02:42:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlRZRyprNTbEBQx2LuESVGx7LLHFPWc0wsF5305uihQyQNx3vThxmIbslxFlkPhwyL3RibH4V1i3BEqmnrwJausdUYJvAyAZq8na3jNQ== X-Google-Smtp-Source: AGHT+IGTYeQqIFuemymQsaNMGsXp/duN5iU+4qJ4BZakELqiLC7HHz0VqkmoUcMPbytRqk/paeIs X-Received: by 2002:a05:622a:1486:b0:42e:fa5e:be22 with SMTP id t6-20020a05622a148600b0042efa5ebe22mr3181353qtx.6.1710322931388; Wed, 13 Mar 2024 02:42:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710322931; cv=pass; d=google.com; s=arc-20160816; b=nxOExN1cLnVZ4fVfW4lxZMI6uoIdNz9o/0Nb1nYroc/wcvUhan/2ZM7UytNYKhG4cK IHt43Wj+Ql4Q+WOvfVWE8zFTCLlda6YHp4sH6mXJG+PsaCR5bBk171E8tAWLVWM8SKDZ Uues8YblYszItbLV6Nhf8LEkULFT0T2BNxdrPfPS/3GkHK2DQCORcRSn9/syBHsldk2m KkNAqKcjLHHSo1xiNIb10pl1YhZNPRkjS/xNjVxOYu7VCy3A3y3aFQIclKvZAStrcuae TsR5nHh6fBpHSSf6kaHMskBziqdwudb3I4ltactmnw+DQ2SkSvJYjjpiXzskWy3bWVJT RS4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:date:from:dkim-signature; bh=nqT6MbYIUXhVn1ev/HIV8qz1Uih12KTCzkmhMV6SWPg=; fh=krNPXIVd5wFiODOamumP+kIE4kP5CpPnaXgWLpstIac=; b=uZEU5DLhbgwf3SI4sLB0+DqTA35CWQMpAeOIv19EPd29Uqt2+Kr984aFuYklWFHI/5 TuCUVFLJ6AoXgUi0ANFei+29K5U2gNHnz/QoTwSB0ZnVk0s/Gxwj1NK9ePzFOxG48foS avXbHFVa0FMD/6aoiFC7uoCyQ1CR03gYIvcpRaBITIWXnRIGNGSaoBx/Yvk11MBi2Y9p 01hG86ensE20LZXJnv7Yy/IR6izZHD2oWII9Ll9ZbRFDTDlaOcQkwULkBou4tGQl07W3 MFIqshNDE78rfS9D6DqpPyfM2+wctzkV0Drgy7LpjP5VIRyOyO60OnrLU3GnPwYojzt2 wRuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QMB0PnMI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-101287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101287-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f31-20020a05622a1a1f00b0042f1f1c375fsi9457011qtb.8.2024.03.13.02.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 02:42:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QMB0PnMI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-101287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101287-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1E58D1C20F71 for ; Wed, 13 Mar 2024 09:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E91F8225DF; Wed, 13 Mar 2024 09:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QMB0PnMI" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F75A20DDC; Wed, 13 Mar 2024 09:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710322911; cv=none; b=qK+mS02K0U9RBrWh9XuNb+FzB+aWDKj5bsscKf0eWfdj8JOJ5DPK0yKKuwtl1RS5eFkMvQaU3euUdJLUoK09T1LHgSzZ7PForQWm4p8gWBNT3Eu2zz6L8g7vNQTi+1WgV60AZE+WbkPZYRAvzQur5sk/p5w1LHzjEScMsyfx/xA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710322911; c=relaxed/simple; bh=Iy33NOA8FEicl4HdVCTiTZ1Jnm6pT2oK0Zfr+wPVLGU=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LXT10y5Mt5L/0DwVVeehkapqOuV/ztzL9UJPLqZiZsd30MPDfge1Oe3vtkVcVX71UEcWfuXtK3aI8w0smjbkx4djt18fOhN4jvkOYSzlCnQ8a5HxsXUzmeoYIR+sAjkGNY9zKx4nYeIemd74qne3dWXQU/MJcSZT1s+abh/9GaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QMB0PnMI; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4132600824bso5610685e9.2; Wed, 13 Mar 2024 02:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710322908; x=1710927708; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=nqT6MbYIUXhVn1ev/HIV8qz1Uih12KTCzkmhMV6SWPg=; b=QMB0PnMI9GjqYeRiGwma3mODigfSyzjeYEs2N1DLTd2lo81g+HajqZKBxyjTfFC0PB BeofCcvF4XAIxlR8gzjcjx9H1nUwd6OJgaO/mDLDcmwwGMBajv0x3ekgR3ITOjGxBNXN Q56Cm8WMMw/198y+xCOerip2ANEjRTJLqT6LLj1guTaIrobgTo1HIbVZVeM9TRMby3RZ gm18IrPKGqRcgnI9TyNN9CQZ16b/hiTLE9j7w8N5j6xkhcVBaRLrKo9uXXzaVtpybTu5 ia2jHrB9CoSeScfW0XkGL/Jl5Bw0c0/DbBdArZv7z2DJxUTrq5TLXgAE2/TyFDhQBjnJ XnvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710322908; x=1710927708; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nqT6MbYIUXhVn1ev/HIV8qz1Uih12KTCzkmhMV6SWPg=; b=WYc2hRoguqpYuoQiZIIjpRlzYRVka4CiZJFmyaXyYI2E2gAiuZs+d416f/l6iUFIxl T9eOi33jpLPkUS8HUqBFzVgp8ahw9fiE30Oxxl70cp0aX+iQPl9OxhIWbk5VsMvwbq51 2UUCx2JlMTRY+kG/UYGOxjOyqJa3c+EtArrdUSBrt0FjG2Zo+qrlGNFBCKED4oT5m/0C uF++kkWFcieuHXW/ru6EJWQjXoa7MxN+awBf0JqIx4EI1tQpjtBVlfdxwBFWFc98oNTr Qj23EKlbLEUyFKBihNQqki4/GvRURFvZ6muTQsgMV9BrR1dcvjaOt0WHuyVFS4YsnY5m AobQ== X-Forwarded-Encrypted: i=1; AJvYcCX88x706dcV3KqpkxhGttEXnJS+F82tlBGs/FzEeoUZqb+7qIGAb+WBX7khamnSWnmlw5GFoZYXO0WnwzLIG0PE8KtunfGYEwwCCqQz3BToXO1Xcj5os8DXaClgHIsyq1XB X-Gm-Message-State: AOJu0YyxYfe7tKa5sZCpQld6B2NT9TDMHy3P5B1b0jghBDwCrT3qwQCm BjHQ1WAvZ/swgLML+5zlx2kyL6jdoFiC3krXzol9bO9Z1+5OpNUz X-Received: by 2002:a05:600c:538c:b0:413:e994:16dd with SMTP id hg12-20020a05600c538c00b00413e99416ddmr974339wmb.28.1710322907592; Wed, 13 Mar 2024 02:41:47 -0700 (PDT) Received: from krava (2001-1ae9-1c2-4c00-726e-c10f-8833-ff22.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:726e:c10f:8833:ff22]) by smtp.gmail.com with ESMTPSA id h4-20020a05600c350400b00413177c3f1dsm1728584wmq.18.2024.03.13.02.41.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 02:41:46 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Wed, 13 Mar 2024 10:41:44 +0100 To: Andrii Nakryiko Cc: linux-trace-kernel@vger.kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, bpf@vger.kernel.org, mathieu.desnoyers@efficios.com, linux-kernel@vger.kernel.org, oleg@redhat.com Subject: Re: [PATCH bpf-next 0/3] uprobes: two common case speed ups Message-ID: References: <20240312210233.1941599-1-andrii@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240312210233.1941599-1-andrii@kernel.org> On Tue, Mar 12, 2024 at 02:02:30PM -0700, Andrii Nakryiko wrote: > This patch set implements two speed ups for uprobe/uretprobe runtime execution > path for some common scenarios: BPF-only uprobes (patches #1 and #2) and > system-wide (non-PID-specific) uprobes (patch #3). Please see individual > patches for details. > > Given I haven't worked with uprobe code before, I'm unfamiliar with > conventions in this subsystem, including which kernel tree patches should be > sent to. For now I based all the changes on top of bpf-next/master, which is > where I tested and benchmarked everything anyways. Please advise what should > I use as a base for subsequent revision. Thanks. > > Andrii Nakryiko (3): > uprobes: encapsulate preparation of uprobe args buffer > uprobes: prepare uprobe args buffer lazily > uprobes: add speculative lockless system-wide uprobe filter check nice cleanup and speed up, lgtm Reviewed-by: Jiri Olsa jirka > > kernel/trace/trace_uprobe.c | 103 ++++++++++++++++++++++-------------- > 1 file changed, 63 insertions(+), 40 deletions(-) > > -- > 2.43.0 > >