From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 3DC0347B420 for ; Tue, 30 Jun 2026 20:56:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782853009; cv=none; b=mtKtO2HkFmyRA75e3oFysv5f3Vp7KxwCNINE383Eii/AGKduXp+XrgeP5ZuD3wfTZ0xcxQ/Hp+4JKJioKHOlB7cSWEPHey6fd0O7jdOZGheTty+fk4g74BQMhe9IszrQecgX311FcOTMNFbw1PLtj04Ysk5L/Y3B+FJXrALP38o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782853009; c=relaxed/simple; bh=ld1EK44F94Iexb0qxSlrHxVHWj3CVMGNVdp/fJue34E=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=t68OuqN6jyIn/WG9ClONe5kPW3CguH7zg8OCzLUedW2yQZKSuG9Jgb+nAankqp25fth7d54JUOdbNXIOvQYPN+m6hsmpf0kx1yfbgsv6fkbl7jtN6Cp5WKFeLZPSTwWVkIVKgNupJK8QcBbsEi5jL6W160YIXnlOUT7YzJz/eho= 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=OlWfLUIq; arc=none smtp.client-ip=209.85.210.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OlWfLUIq" Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-7e6128bd9b3so2528200a34.1 for ; Tue, 30 Jun 2026 13:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782853007; x=1783457807; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ld1EK44F94Iexb0qxSlrHxVHWj3CVMGNVdp/fJue34E=; b=OlWfLUIqXBJuECnBrubNj70YYTjxV+TG+dFSqAAtRBJ+WttAgJko4w3kPjixO/4AHy eG4Jiqp2uT7XYR6GVLJ0B0YXVzci2487DwK4S8DlYgTlRNw3GuqY6Wb7Bf9HciZEQF0n JEKElNYXgwxtvqshZ+TKvhE69FIJ6LpY4NX9tdej1vDZJXRt6ejwSS7ITNpJAj68dmXh TVE808NwA7fALCWBzNiDUMwjZelsE6aeedTu4uLPTyiKQcQLLDVmgPxkBq+iaKSqhtYN dtiNEiWbCrDQYUvI1muy2UPCTCDXGn0KAQ0yICyOGSQ+zcw8RI08W0h4x1f1Yt5XK0nD xe1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782853007; x=1783457807; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ld1EK44F94Iexb0qxSlrHxVHWj3CVMGNVdp/fJue34E=; b=sj+uBuQHBchyJyvPnu7BaDeYu06t/lMNmpw8H9+zmPbz5luVrc1oITNTINUKadS7L/ H6O8AzmkKXy9QQc1jPVDn/f2LIjwsI4wGOt6/9+gcn7oIci8IXUIImYprd1BvF8PXTq2 Y0swTBOMju0ErKBbZZUmcYd6JifNxN5SR4MwzUKMrZKRnoKdgUAClJLAxK5ZNRh/8a59 DA8YX1xHwD5Cq6MAq3yuCS+VCUs5v1lVp0ESi349jGkT7UgruzAXkeRvsvgXQt5ifufv bsPlwx3XAlv1ay8oSICTJdnF4Z30KbfxWtqusqUfsRcz/F+iLnbbikTQ65Nhqib7B//x eVlg== X-Gm-Message-State: AOJu0Yxx3XhZrYUBeXodLCPtzooA67H6Yjot5pNkjINHD/+/jIy71Dcy czxM4kt05JYKnOHObVjDjuY44XBaJlloIdh9KVHtsQ+eLOd9edgrFi4Y X-Gm-Gg: AfdE7ckPDwNOmoA4tx6mvRbb1Sd7/onjxPAy0cTuuTDeGgzx9a4e//Cz1nCc8zgPe0f h6309XT8sDU6KLWyUqEAbA4g540tQBdzzM0R9l9yFkBUYL2DxMSQXDGctsEuSbCxFRbpNsH9QKB 3lLHdshvmI0C1u0hjpPZq3jItjOizpsqew8OvTIhlpt47B0mLnbu1J8SDayDvrszt0oSCWP6IWT 2vP2UJhZdjg8OBUxdi7OkCL4k9KwQAVfjE10WI5l/SOo0w0ulvShaKflaufzTzW/ySmH+vwPrzv HKohQYZjugHAdWAmVM3kmjqBCsn1weGiBcKglD0+HP7MVe79oxntsHE3KPWY5to42TXFW3IcP1h BLyINliMrt7iZMIk+sVpXwS5GkenPqNTfmlVhEBKZSxzXqCWdjA/ItSX88YyWG+z95hdzdLizR3 pRxeqz8ITyx+VWdTSw0vTg9sfuDTxsEC/6GOQhvkPE450T7/dUuzhGCkxd5gcCW+MOslE6QXt3x mBxUA== X-Received: by 2002:a05:6830:264b:b0:7e9:e860:6ee with SMTP id 46e09a7af769-7e9fc096ea7mr1417099a34.31.1782853007039; Tue, 30 Jun 2026 13:56:47 -0700 (PDT) Received: from localhost ([2a03:2880:10ff:5::]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7e9ec307edesm3163887a34.21.2026.06.30.13.56.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2026 13:56:46 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 30 Jun 2026 13:56:45 -0700 Message-Id: From: "Alexei Starovoitov" To: "Aaron Lewis" , , , , , , , , , , , , Cc: , , Subject: Re: [PATCH 0/1] Introduce an instrumented profiler using BpfTrace X-Mailer: aerc References: <20260630141152.3757722-1-aaronlewis@google.com> In-Reply-To: <20260630141152.3757722-1-aaronlewis@google.com> On Tue Jun 30, 2026 at 7:11 AM PDT, Aaron Lewis wrote: > I am proposing this patch as a simple way of turning BpfTrace into an > instrumented profiler. This approach has come in handy for me more than > once, so I felt like it could be useful for others as well. > > I am not entirely sure where something like this should live in the > kernel tree, so I took a chance and put it in > "tools/bpftrace/instrumented_profiler". I am not attached to this > location, so please feel free to recommend a better place for it to live > if this doesn't seem appropriate. Nice work, but, sorry, this kind of tools don't belong in the kernel tree. 'tools' directory is for things that kernel itself needs to build or debug. 'tools/perf' is the only true exception.