Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1356348ybe; Thu, 5 Sep 2019 14:21:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9XMINrJ8y33t/TMEHw95S1kn7WhDNcaXfJjRGQ2TYgjwrmn+WD3RPYXTggoI16RNhJ6zh X-Received: by 2002:a17:90a:9409:: with SMTP id r9mr6179242pjo.10.1567718480679; Thu, 05 Sep 2019 14:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567718480; cv=none; d=google.com; s=arc-20160816; b=K3E3kt5zRklUIC86Hj9k2Q74Y/GKFDdSw8WDeVpctls1UuOFvBJl+SbDZPAgM1/d8M NIN4m3ENeFPkkRR46zCgPxhGLvVkZMQTUwFRQXVlhLrnW80fl2eMy2YnOzDVMfVOvVf9 7lxgSt+O7vD5H6fFOKiUO3EhULtPbsERj2CBJ9ymcTQa6/yPc+bf/dRXn9CA83LCfLrW cOh3c6TrFrkkOLsEIazfAQwjdVokPTef1ryxSUz3sWBwzK7oJ7VzT5AYK2kCNJ4wLW0t uyV8aEtmIksI3nMG0/KkbS8eKq9Jk3hky2n1WsEP44W6EpaYTLIFwHF3+Oqk1clRqKwi Qc3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ep9JwUQ2BMp8yRcgN+etJF02oewoJiDw/OSbeDRO2k0=; b=CDwLawHq9caDB6ULwzYC2BSEvzYg0oaJqMPXxqG/TI78AzzmVMNgMmrq/dEHFLCSBh MGE+FWZ7PLxAzS3A0M4R0Dg1LMKjSLUSGpTiowKd1T9ia9iO/z4VWXaBVeX9qxR7S9sY ZauXm+K7alaGjqP44ErOJrTsmJwJOGnf0zGiJjB7y7XEi0Lyem/6lpliVzuUrQB6OqSt 3RH8csacEJEPfE8BlJtMj90tgIyj5ZpSMvr86KkWuOGr9WtirjHejzxHlWTiDoQtW2r1 V8y/TcMrL6Cz+p6x9efwQXnRX49HWS9rxyXUhu6zenPfYOinIe7+QNKR+KIFUNdfJ3+q Thvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c137si2760072pga.80.2019.09.05.14.21.03; Thu, 05 Sep 2019 14:21:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390072AbfIEQwg (ORCPT + 99 others); Thu, 5 Sep 2019 12:52:36 -0400 Received: from foss.arm.com ([217.140.110.172]:47510 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728254AbfIEQwf (ORCPT ); Thu, 5 Sep 2019 12:52:35 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D10D28; Thu, 5 Sep 2019 09:52:34 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4354C3F718; Thu, 5 Sep 2019 09:52:33 -0700 (PDT) Subject: Re: sched: make struct task_struct::state 32-bit To: Markus Elfring , Alexey Dobriyan , dm-devel@redhat.com, linux-block@vger.kernel.org, rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Andrea Arcangeli , Ingo Molnar , Jens Axboe , Peter Zijlstra References: <7e3e784c-e8e6-f9ba-490f-ec3bf956d96b@web.de> From: Valentin Schneider Message-ID: <0c4dcb91-4830-0013-b8c6-64b9e1ce47d4@arm.com> Date: Thu, 5 Sep 2019 17:52:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <7e3e784c-e8e6-f9ba-490f-ec3bf956d96b@web.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/09/2019 16:51, Markus Elfring wrote: > Can a transformation approach like the following work also > for your software? > > @replacement@ > > identifier func, p, state_var; > > @@ > > func(..., > struct task_struct *p, > ... > , > - long > + int > state_var > , > ...) > > { > > ... > > } > > I actually got rid of the task_struct* parameter and now just match against task_struct.p accesses in the function body, which has the added bonus of not caring about the order of the parameters. Still not there yet but making progress in the background, hope it's passable entertainment to see me struggle my way there :) > > Regards, > Markus >