Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp71353lqh; Fri, 3 May 2024 13:48:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeiUG6FRDJdcAVZz3kMuh5M3GGWb6FnnGCGIay6W225+ZrobFVHMl8S+bSELSn/Xz0IfCatQjh0PbTTLZhHY2ZXOj97nW8SNfQIQtgjg== X-Google-Smtp-Source: AGHT+IEXYrFAIJZZ7QsXzuSSaCh849iHr/L9m8njv+EFIvxxQkffHreMaWbOY/sf285zQWwKahI9 X-Received: by 2002:a05:6a21:6d99:b0:1af:5d8b:87f3 with SMTP id wl25-20020a056a216d9900b001af5d8b87f3mr4566642pzb.23.1714769300742; Fri, 03 May 2024 13:48:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714769300; cv=pass; d=google.com; s=arc-20160816; b=l3BdicLE6vcztiD7/DZegAFhQWgVAnByT2BeboXiVM03aAOo9BW1MlZ7HlOHZ4PG55 hnq8QKrfYzVoTfBYNeWxpwl2v3j3kql0TwTrghZbq+kssf7wTbvLHTVCyDx4y8Ee5dHP w32hI2Vt2wliXzt5/kc9BctmD2qMBWQ8FCt+8MC2Yo717sCZqfN8JD9sM5AQy6lYNTFp /7XnSOTAg1advFG3I4+CVpqdAhoz/nWxGkQTHWE6QQ8I6mXLHxlFYMdbZnDFUWIWtJN+ SGx+uN6EIe3ouo+J4qGk6uo8wrNuFdsiTYsaHyMB3BJfWI1JTD1SV1L9zN282Tw0c/Xd FT/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:date:from:dkim-signature; bh=ZqsBll30nF6InCu+LuZTkxYmMemHYMNhisoQizv1i44=; fh=RYXgnoHMu3T57yzjC0q0eZRgYrNpFdrC/0+2jd8acvY=; b=FOJURGMczjVuzgGRTT646pzmHvT+U6qw4C0l7eMGYF7ki1mOicylhHRzhBxsvBK3Ts 8/O+rFHyQeG7nFwnTOzfemZ+olGsWT3Sx+jZzZSjk0jn2VHqgHK3GLH0XLcDAj0oXTMT cS/mF9KcW6YIgqXb8EliEkJ/WcoiDt8/O4haR1yzKjQxyqzfYZ13vOJOs+1oPr6ElVib O1P/5eEQUE6lta9NFcG42dp8FBDbmKhCxNO7VOkMjjq0+rltHQ5Lqr5D35uqiQ0Jfn5M SKE0qhMibqnwS8zXEy5gbJyOiH2oH0ip2JBq1GuYGMQQDEEFDpvthIDF6doP3wC9Sl9k pG0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SS+wrDCX; 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-168197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j14-20020aa78dce000000b006eced1a16absi1812775pfr.200.2024.05.03.13.48.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:48:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SS+wrDCX; 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-168197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168197-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 705B62881E9 for ; Fri, 3 May 2024 20:39:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D8882E83F; Fri, 3 May 2024 20:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SS+wrDCX" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 9B5C2134B1; Fri, 3 May 2024 20:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714768768; cv=none; b=oQ1jcfyL//8oOwatv6DY58fYegc1FXplyOWz9Noi2Cnlpu5iI3AeZ8YHAyM0ESI2G4fUCWaEdsY6ZmoPec6q0/bVupvW6U2z6sD+9D0U5lKIVsjThQt5AE037A1Q5H1f38F8AhH+Hb5MWnzjobMPerC94AcIHxMDLjSxDrkS3CE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714768768; c=relaxed/simple; bh=Rep+x/1IhbTWBkGtXMfFkyJ0D8lQ+OKZafkHQtxPmB4=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MLXy3WJbGeXWBi9xlmKm0rcQlIh6uq+tA2EhDTnjbYEvU+p+crNYVqtqeStcshbdHUvyhkor4642txrlqCPrx40nRJ4gZigX4z8dLpGSG/Bq9KsTERxqhtJSBFQxvysrGZMUDxmT9s5+kuYq++uFJ+0B3hhFHv9rxxq5y/FClgg= 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=SS+wrDCX; arc=none smtp.client-ip=209.85.167.54 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-lf1-f54.google.com with SMTP id 2adb3069b0e04-51ae2e37a87so66967e87.2; Fri, 03 May 2024 13:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714768765; x=1715373565; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:date:from:from:to :cc:subject:date:message-id:reply-to; bh=ZqsBll30nF6InCu+LuZTkxYmMemHYMNhisoQizv1i44=; b=SS+wrDCXD//5KDkWwl2IHUGbJ6QuUtX0DQ8cBHr1orczGAVx7kC4bZOoQH1lYEL3uy mGmrY3N2+BDwijlUWCP3EY9FyLmpEvgEZtHQ3evGQz+MeLzUBgSXm013yoByJa+RDCTl qD0i99mECxjckP2m32IE2lIvozLpJpf8J3CH22jqXe3JvgO9BLHHR0tpt83iTzPxmC9f L9ehHRXOyUWClEW/d9GFh5hT2detQq/LwWYG8svEdzY0Uyz+kue4yBVTmFv5q1c6bKPi fQqG/7qfFe19hl0SGNqvCy6NiUlnv8A25MEJq4Bpnn+mCpzPOhRlELEAVHh+zAnsZI0l gaYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714768765; x=1715373565; h=in-reply-to:content-transfer-encoding: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=ZqsBll30nF6InCu+LuZTkxYmMemHYMNhisoQizv1i44=; b=wlNGUY0uLE54+gmdOBW6qyOdkWCYn+ibVUSmYdPYVZJ5DJtEJxQ5VWnkH/gumnQCEJ 0tqxeXr1s9mSzxTB/fq3O6Na7GXe64Sm8tc/227nclWskVCSxdpXSwyRxwS7eVyCSPxN EsDfvLeyuVN7AZ2CMKNRnaC1Xqb5J3R6rMJmAyl7oMe7PDik746oSgqEopjgUA20FTGQ +F5N0zw43TlzKab68W1lscQF6gDwaGWnZJg4jAz/HW0fO2a5/vBZADdGe1VNaNfYrQdh pSIMcTlLq86hDzRRr2EOpmC2wvIF3cpgHtLUb7y+ZcOwIWlMyuKULM9YD4CzDNoikOdq NQ6g== X-Forwarded-Encrypted: i=1; AJvYcCU/KCHhZw/5tAlWJnWWA3p2TNTLsVds79sTrMpjA1CWp77y+S0quEBub13X8f0Y8fGa9A1uWOPb8uEv804qxAR1z9TAiS4ejQVNB1LPM2UE/6tdHnOZ6xFdwx0x/yEOMSuS7Sij2PmNDA+yXBLBANiobW+2wAV1LW5pBfDI8uceTArfn1yPznvfwZZygPBz6byucdXgevfY1/jajvQL7gLBcVh9mRQ9qNhsxXVdmKe5sdS+SZjt5gta58ym X-Gm-Message-State: AOJu0YwTaK1xMDGuPQxYeFfii0lcnntzVt79QSu22j8Ta3IZIy3izSKS W1kqi3wMZQS8aiV2C5552HoKJGNDm1OsUC3KeIyFdvG0d0Z9Aemy X-Received: by 2002:a19:644b:0:b0:51c:cd8d:2865 with SMTP id b11-20020a19644b000000b0051ccd8d2865mr2454181lfj.44.1714768764410; Fri, 03 May 2024 13:39:24 -0700 (PDT) Received: from krava ([83.240.62.36]) by smtp.gmail.com with ESMTPSA id bk15-20020a170906b0cf00b00a52244ab819sm2141858ejb.170.2024.05.03.13.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 13:39:23 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Fri, 3 May 2024 22:39:21 +0200 To: Andrii Nakryiko Cc: Jiri Olsa , Steven Rostedt , Masami Hiramatsu , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, x86@kernel.org, bpf@vger.kernel.org, Song Liu , Yonghong Song , John Fastabend , Peter Zijlstra , Thomas Gleixner , "Borislav Petkov (AMD)" , Ingo Molnar , Andy Lutomirski Subject: Re: [PATCHv4 bpf-next 0/7] uprobe: uretprobe speed up Message-ID: References: <20240502122313.1579719-1-jolsa@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 03, 2024 at 11:03:24AM -0700, Andrii Nakryiko wrote: > On Thu, May 2, 2024 at 1:04 PM Jiri Olsa wrote: > > > > On Thu, May 02, 2024 at 09:43:02AM -0700, Andrii Nakryiko wrote: > > > On Thu, May 2, 2024 at 5:23 AM Jiri Olsa wrote: > > > > > > > > hi, > > > > as part of the effort on speeding up the uprobes [0] coming with > > > > return uprobe optimization by using syscall instead of the trap > > > > on the uretprobe trampoline. > > > > > > > > The speed up depends on instruction type that uprobe is installed > > > > and depends on specific HW type, please check patch 1 for details. > > > > > > > > Patches 1-6 are based on bpf-next/master, but path 1 and 2 are > > > > apply-able on linux-trace.git tree probes/for-next branch. > > > > Patch 7 is based on man-pages master. > > > > > > > > v4 changes: > > > > - added acks [Oleg,Andrii,Masami] > > > > - reworded the man page and adding more info to NOTE section [Masami] > > > > - rewrote bpf tests not to use trace_pipe [Andrii] > > > > - cc-ed linux-man list > > > > > > > > Also available at: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > > > > uretprobe_syscall > > > > > > > > > > It looks great to me, thanks! Unfortunately BPF CI build is broken, > > > probably due to some of the Makefile additions, please investigate and > > > fix (or we'll need to fix something on BPF CI side), but it looks like > > > you'll need another revision, unfortunately. > > > > > > pw-bot: cr > > > > > > [0] https://github.com/kernel-patches/bpf/actions/runs/8923849088/job/24509002194 > > > > yes, I think it's missing the 32-bit libc for uprobe_compat binary, > > probably it needs to be added to github.com:libbpf/ci.git setup-build-env/action.yml ? > > hm but I'm not sure how to test it, need to check > > You can create a custom PR directly against Github repo > (kernel-patches/bpf) and BPF CI will run all the tests on your custom > code. This way you can iterate without spamming the mailing list. I'm running CI tests like that, but I think I need to change the action which is in other repo (github.com:libbpf/ci.git) > > But I'm just wondering if it's worth complicating setup just for > testing this x32 compat mode. So maybe just dropping one of those > patches would be better? well, we had compat process crashing on uretprobe because of this change, so I rather keep the test.. or it can go in later on when the CI stuff is figured out.. I got busy with the shadow stack issue today, will check on the CI PR next week jirka