Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp356442lqh; Tue, 7 May 2024 00:47:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9gQqifGo381qe/DxtnUZSE3/MIfTYu+5ZGG56YeCAe2W2chDw0CjwxZW5r/kvRbP7XkxIjiIeTEGN+Ygd8Hk1atywXlUbttTjIWlO+Q== X-Google-Smtp-Source: AGHT+IHe8shfROQ+V1rwyLNJS7wGZbyis0WYl3SM0rSaG5SPR/+dnh4gudxikzGOGnLlEJ0c8oYz X-Received: by 2002:a05:6402:1358:b0:572:f6e9:7724 with SMTP id y24-20020a056402135800b00572f6e97724mr3382897edw.3.1715068041848; Tue, 07 May 2024 00:47:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715068041; cv=pass; d=google.com; s=arc-20160816; b=ZSsyaAqiAhyrW5hX+pMIP13IZ92KY32wNnM8lv694b7JSPoFafj9ZtVHbHc0LDy31N dOy0myCwZgb0nkrrbDn+fbvmy+T5yKmSYuLX1O1VYGdwD95C+pAqWuCHkbrw2II3Rf5E ZndXrt6gtub3PTOulBtOxvY1Epc7/c0GN2QpHqNJxePaNtdW/BPqI2Mk0Rn5RZr4uvOC UFU3gF+VzBbret3pp+nUBHWz+vWv9ZgMsoe/23RL2WBRb0MK10cRROe9QxeURsNCoJ+8 OFOGKvW0zLk7PILHS9yAMbhTjvSHvcXfDknlzC5CFhggufldxAcstbPoavzhjaXXfKDw s1vQ== 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=7W8Lgnc2QmcYuA3PD75NwVh4l9qkIidlX6ZKt/45er0=; fh=WE76TAEg2cgvlbJzE2ptzcvW1FOePUYgks22dCRxaJc=; b=k5U1BhZ1HK36+dytiSdPzep6a+YkJhb6TmEBqSNjzEjwHOikyC09pYMX9paWxWFhYn Sv0BLj82wXLaIpBrvVxIe1zkBgq8KCyAo6wcZk+2L4VLNCEW4fiIA5Seqdj+ER5WaAle lQphpS8Sk5Oal2c4lAMtQX4I6T9YdIrvuYmxAwkAXF59eNRb5eF+UVjd9m8mbdDfSeYC 3VRcijvC9NTl7sZiLwMlVqYdO3v0jMkehEWyNFpRISxMdqiBzMFyp6Ir27wsOoGoOSNz 7li34GorYJ65bH/B0l8nfTgwo4xgqFNXWfGwA5ah+Pv0v24fszOA7RzFhQc52/GTOi5V YdvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Y6yLdX/O"; 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-170834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d21-20020a056402079500b005701de63ecasi5229289edy.333.2024.05.07.00.47.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 00:47:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Y6yLdX/O"; 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-170834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170834-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A4AFD1F22561 for ; Tue, 7 May 2024 07:47:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ADAE13C825; Tue, 7 May 2024 07:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y6yLdX/O" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 72BC813C3E2; Tue, 7 May 2024 07:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715068027; cv=none; b=eClr/XTeKsN+2a1cItAq3oLDO2kLP/hxUgjmR6tZzBQ5NXWcnfRQ8Yq5N5hw9Nit1m6lUJ46y54uwCCFkJXBoXxlsQvR2NgL5dRY0cvyKuFPKUPc+LXve+EzyA28NTz0FP/HqXEyNWxUH6+ieQivky6DOMX3zJdT38LD/0nTHso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715068027; c=relaxed/simple; bh=yf4Yg/+Zl+Y89cEZ893/e5GdcQqcjBTYy7kKVYel4w4=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=shqJJTF5Bo6YWQfd5pZAX10weFsjh38AHaBznaAqetpcljhzhXeRK9KN+Jxl2uJxPhGzVcqCgnPu9SFc0SJBmq8iJJFhCkXrm3V779gSniW3wztWiQgPv8ve5mllVaI4JHdAwoW1qtHsOmDgigHvdJ7yWie/lQ1yc+BeCHcm5fY= 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=Y6yLdX/O; arc=none smtp.client-ip=209.85.128.42 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-f42.google.com with SMTP id 5b1f17b1804b1-41b79451128so18982705e9.0; Tue, 07 May 2024 00:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715068024; x=1715672824; 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=7W8Lgnc2QmcYuA3PD75NwVh4l9qkIidlX6ZKt/45er0=; b=Y6yLdX/Ozo/hVRqaKh/PCZRZcGCetgUSnoJzo8zsSBACd0DgjeOv1g0jqkXFHzR1ZN RGoRaluxoVDznDc2kJls718pQ/G7wE/3qtKlFsSwNm+MWIf113MSyWrZ1TuzPYmrMk6V RQyZdMJVWp7zAInSB9bmWBFN1zSOICKhaGQ6Vxa4JdbR0OXqqw2LNxrvfBBoAxT1ds+1 IE16cZdJGdJBzzWaD0r0m19UhuI4ivpKlyX7441QhgsMAYl3l3ldfhIdibh/YWkPmnWZ JUbr8e3ZNRfpnRACL/NYwyoZPMtcpsXzbZtByG8wgP6nkelZaL3IlGph7m0plXMQegS2 Xg3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715068024; x=1715672824; 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=7W8Lgnc2QmcYuA3PD75NwVh4l9qkIidlX6ZKt/45er0=; b=kbgEnkYdRoCKT2M0C6XUFH+jflhtz3+H/ExeFAI67yw/hjFkVtjMC+GBeqXAjAh/xx I73zdh9Jq8yg8gKE8qHVlDT3GVywNyvd7WtdKIdPln15WAveqYXBl2KH9GvplKIEh9kW jhGAcyDmrKCLs/2MH3cdMyLYCrbYsPKGJ+ViLX9g+esgNzwaRChQSPOmZ/MLn8LRbzZ6 e1nH/ne1spAKZTYOMjhVDIcIRLYmrmLc2motmH3eFuY2dztgm9tyKuRQBmctsq/+WSh6 Vko/x+XvexDiJV1lLveoNHW5qju33l7bV3JTWImzPguwzoUi0qUWQe3lpEXGIgz7tl6h K++Q== X-Forwarded-Encrypted: i=1; AJvYcCWkDZu4wHlzSQq5ihGA9HqMgqCX8KvQWkqs20+q6GF36YcRvIG8TCJn6/CJ6HX7K7zxdB9Oj6XhuQa+v7j7N3ARW7icN33BKRGy/bz1TlnXxfX2e5hoFGGWc0OdED9gVQ/xC48qgRFCZVcNrzShfT+mFLeBL5cztaYMKJFkDhXVTA7P4UiA3PMfTV5PVQWzja/YajnupEBqKryWqgKE5eFXUFYUiB+sJlim8AalE1krg1M8tDBFSoql7ZLt X-Gm-Message-State: AOJu0YyOOApIaISHBr3cvka2BuRa+4jqdBUIElO8UgIsw549Rh9Q+XSQ oFWaqBpHN6JYGiUdj2ybKQ1bKceNQuHS+z/UMM5XFz8z/F4Yeqqu X-Received: by 2002:a05:600c:3c93:b0:419:f2a0:138e with SMTP id bg19-20020a05600c3c9300b00419f2a0138emr9382664wmb.34.1715068023534; Tue, 07 May 2024 00:47:03 -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 g7-20020a05600c4ec700b0041902ebc87esm18626956wmq.35.2024.05.07.00.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 00:47:03 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Tue, 7 May 2024 09:47:00 +0200 To: Jiri Olsa Cc: Andrii Nakryiko , 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 10:39:21PM +0200, Jiri Olsa wrote: > 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 ok, it's not as easy as just adding the package.. I don't want to delay this on my missing github skills, I'll skip the test in next version and submit it separately when the github ci is ready for that jirka