Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp50827lqb; Thu, 23 May 2024 10:25:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5lB9vYbx780tenmaG6ro56jvLVObert/pGGdOxzmPELB/LjyjbLCKU1FvjmvhDUKpFyJa7HEeCy/QC1Ew31QQ6dS/ePIJj7k/yvwyAw== X-Google-Smtp-Source: AGHT+IEzbSBFP4Rs6O9GotKmLh2F7kbUhbe7NkQ8E4RoNvmbwJG0bt9H4uBXWsJO47TZ2/OxD1fX X-Received: by 2002:a37:e30c:0:b0:793:72:cb1 with SMTP id af79cd13be357-7949944291dmr529023185a.17.1716485143579; Thu, 23 May 2024 10:25:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716485143; cv=pass; d=google.com; s=arc-20160816; b=huUdm+kd57QAfbhLKTrJyNGSM8j7P6j5Ggr6AP11hZX9oy82Mcaun+HEJDa8Ld8g4k ShSYxNYw3CuQ2xv4LJbKvaK5BnAsr3x75l6+OMbfK0UAYcy56Zc4+qkHCjrucZygs1Fc eO0OBsUaQCUaN/Hh9pVrVBt7ZJxnV/umgHM4RcDtueB1LwzAfVo7IRaRIYXa1t3ZEbie QjC9gGpEc5QXzUg1zE0PYIlJ34I8rasBKRi/f4WQuZ6n7yYo2i2S+TOd+EGi6l2i7Qy/ BBnMypoIvcQ08I78AGPCgRJ8FonLBCB90wUwN6aZjlLsdNMZ+z9sd7qkOZZTQ3eAsRgk Q+YQ== 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:from:date; bh=KgKASjfpRKhZNclBiP977bUwjVO2VOpmWugiV1fmDtw=; fh=LJpUhro5R/zNFFVm5vuCBYQ1TFsC0irdU4zI+PsadGU=; b=qrwsAgEfdr1/b/G7LqWsJN5JsGvEjNzhGzbdnws9ePG4YLS/H1p4XGVk9zoDRwhqWr kEglAMKVDK/od7tIy0njYoxVze57NPi+PVHk3eioETnjxTiwqyWalkWcjzuBMOsr0sap +f2MyjFKSTD9YjTTxtvV7hgwpu0A3juyzeVN1VzBZzfqFA/v8VCwuAJt9NqbPaPHaS6T vgR/camN3wsGeXeQZkfN5MLlvl28pEJS6Ls6P59dYJRvjN8/k0O1hj/KGG4+kzHuVpQr kPCHjidDcioVAkFDZprjfVmZrRROmHx67FMb6j52j51ygE549VTI2KzY13GdPthYzzQz kubw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-187833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187833-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf30b28dsi3368512185a.254.2024.05.23.10.25.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-187833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187833-linux.lists.archive=gmail.com@vger.kernel.org" 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 4A58B1C21780 for ; Thu, 23 May 2024 17:25:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A92C976034; Thu, 23 May 2024 17:25:36 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A28A762C9; Thu, 23 May 2024 17:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716485136; cv=none; b=fppjtEDjphfvx594hLrAcvJibYfBzq4Y/CyKa0zoxEXKhx3D4suDK9O5HUXXgQRgKozfxCjogG04V+zNQbSPmwfW01iiErHraxGunPBBDxRUeFk3abNhaoCNpiJan5/fnlWzB0rYxFa0A293sKHTyIWYiN1ggq5LQLIISu6IuG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716485136; c=relaxed/simple; bh=8eUT9FM0v7qVS6YDmMIi10oeekmWY6u4aR80+EI5UXY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lkqzjUP1J+LAd/g0VV6yZTL23ArLsggTqdaB7Jcq4Vkio7VBlGkcuuvuPa6AUl4cLHm/8KiFRClnZp3lQ65SVjNXnEaI1OciNYOUGvs3rzGm+15fyIZLToHL6q7dNxaz0mlowXFRdh8Nt4bAGw8wxWQbZ4JzPaShRxj5Ke358Cg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 885BAC2BD10; Thu, 23 May 2024 17:25:34 +0000 (UTC) Date: Thu, 23 May 2024 13:25:27 -0400 From: Steven Rostedt To: Linus Torvalds Cc: Yafang Shao , bpf , Tejun Heo , Jan Engelhardt , Craig Small , linux-kernel@vger.kernel.org, Lai Jiangshan Subject: Re: [PATCH workqueue/for-6.10-fixes] workqueue: Refactor worker ID formatting and make wq_worker_comm() use full ID string Message-ID: References: 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: On Wed, May 22, 2024 at 09:32:03PM -0700, Linus Torvalds wrote: > On Wed, 22 May 2024 at 19:38, Yafang Shao wrote: > > > > Indeed, the 16-byte limit is hard-coded in certain BPF code: > > It's worse than that. > > We have code like this: > > memcpy(__entry->comm, t->comm, TASK_COMM_LEN); FYI, I would be happy to convert the tracing events over to dynamic strings. It takes a 4 byte meta data that holds the offset and size of the string, then the string itself (appended at the end of the event buffer) as well as the space. The sched_switch and sched_waking events were created before the dynamic string code was added, hence the hard coded size. I'm not sure what fallout that would have for user space tools, as some tooling does hardcode the parsing of the sched event. But I'm sure I can work to fix those tools. -- Steve