Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp975414lqo; Fri, 17 May 2024 07:15:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQJMZ4ZtqQUrWbuo7lrO1d/RoFJrN4SHvIcQ/P2/w6EN3suE6VzwiyAFsLNp2kHNDzh/4+VUu+p91KE8iJV5ej1ZG8CObH+NhgHY//Vw== X-Google-Smtp-Source: AGHT+IHL2d/RJUsfK6NVEsoO10lJRyGbq9zBt5YjPaAxV2hxmlue4lZLFYvyQeUGSnpscbwLlhZL X-Received: by 2002:a9d:6d95:0:b0:6f0:5204:6470 with SMTP id 46e09a7af769-6f0e914a105mr23581068a34.15.1715955350487; Fri, 17 May 2024 07:15:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715955350; cv=pass; d=google.com; s=arc-20160816; b=PO3/mZLK2QVhDeotVo9TySJLESlo3OWbF9lETGxhMijYMo2iToapJP9zLlF7EHhL1g T2EOO3popf/yfs0x9G+Hv2/m7NxBXPjwqZ2CRs9oE4sgfktQEmWd0eZusscLSN6Qat3V atvTlw4xN3iyok0orMZuBoqu2pOjLenFZlx7/4iwCLRIsFHmktRkyEGvoOZrHGMoSGSI xiq7roj6A9mSpk4dXl9+yQ9wi6r9V6CGWt21XB6NGJdGhOOQEyxklG2s57TRzNUFfXnP UmhGjhUWfS6YUxusmjy+vhPsaJMRUDVTWxscsQ56xZkIvHm/4Pe+tPGY5qyQH8n1OKTB IWOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=W7aFjgvpblo0NmMWuN6YEsmuDrb2uu4hWfjFfzoOI8s=; fh=v5aQbkdXk/vwasRprhszRfTDxUdf8o/1f50X4McI+F8=; b=WROddV3K3nHLxRhMVGInDlePTeZQ7sWGiQpIUDRhZ0C7wC7M2JJ0Byk951IDzRGzXe 9dj+jX0VwU9I+8dlX+5lQU33uKyh13tUsRAO5NFRUTTHUdtdREPzMpJDBU1T4xvxb/LG hO14M929l2qnQHefphsEb0aare2uZqwYuAog+q5eGOwVb+PF1pVK4M9u/iSlIVwz1lV3 bihA+b1YyE2nz5xoF0jk9lQjC8kEdry2GBPtdOqWU+2Fkf1U87SlEXoVPChbB9H3exbB B14r7eoacq3EHtM6rbycKROSOMf/8JhajEb5sOSR1GGLf3RMRmf51h2paaXb36VqmhJh VXbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-182175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182175-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 ada2fe7eead31-4807046e94bsi3993437137.418.2024.05.17.07.15.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 07:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182175-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-182175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182175-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 31D091C22504 for ; Fri, 17 May 2024 14:15:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF2DF5A0E3; Fri, 17 May 2024 14:15:44 +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 340C35A116; Fri, 17 May 2024 14:15:43 +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=1715955344; cv=none; b=gC27/vzEHtF4MG78WU1CT35pqByfn5w/yHiURiW3y2UEoHuzryQ82g1x/po4ME/5HTv8XEar3gukUuIlWjk5bZkUo+IZCZDZ2Kc1QkIahBc+jOBDj5bByBDlhb3CzZRq6b3r5IHclErFgqNdsWR5QZmxoIbOtR0kPEHD524o8Gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715955344; c=relaxed/simple; bh=d+hQgBYBD7HhNvqtRKUIitmuVSa5P1lUxQfBIglOnfY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fXN99fV/I3kJFKFVjzeNlnbhIGll0OlfVWKRbXjMXVcg4IuUfBuW15bH0P3nBN3A1WkY6jlB5TP38MQMtgMoqAyJsOv6lAXntYe39uBfdj6cdehKKu+S0nDCTwhxhILwuRPJrOh48/qPvIMAlSnfnTE8BtCuZk8KzeHR+1RiAzY= 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 2A712C2BD10; Fri, 17 May 2024 14:15:43 +0000 (UTC) Date: Fri, 17 May 2024 10:16:13 -0400 From: Steven Rostedt To: Jani Nikula Cc: LKML , Linux trace kernel Subject: Re: [PATCH] tracing/treewide: Remove second parameter of __assign_str() Message-ID: <20240517101613.0584c291@gandalf.local.home> In-Reply-To: <87eda0c3uk.fsf@intel.com> References: <20240516133454.681ba6a0@rorschach.local.home> <87eda0c3uk.fsf@intel.com> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Fri, 17 May 2024 10:08:51 +0300 Jani Nikula wrote: > On Thu, 16 May 2024, Steven Rostedt wrote: > > There's over 700 users of __assign_str() and because coccinelle does not > > handle the TRACE_EVENT() macro I ended up using the following sed script: > > > > git grep -l __assign_str | while read a ; do > > sed -e 's/\(__assign_str([^,]*[^ ,]\) *,[^;]*/\1)/' $a > /tmp/test-file; > > mv /tmp/test-file $a; > > done > > Try 'sed -i' ;) I've always been nervous about trusting -i ;-) > > > .../drm/i915/display/intel_display_trace.h | 56 ++++----- > > On i915, > > Acked-by: Jani Nikula > Thanks, -- Steve