Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3480942rwl; Tue, 27 Dec 2022 09:44:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvXwJh81m4clhO04kMlAAtXH5npCx2mxeBhOaXkYVkteHllAPAm5KNOobFv0CwX6ndADSYz X-Received: by 2002:a17:902:ab1b:b0:191:3f73:bf4e with SMTP id ik27-20020a170902ab1b00b001913f73bf4emr31889251plb.62.1672163071922; Tue, 27 Dec 2022 09:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672163071; cv=none; d=google.com; s=arc-20160816; b=q2mokJBx5n1+LKYcGEPqkaVYp1iV3ACgFAu7rxvfgL6XfbaDpgagHgwmk2KumBMWhI JCi15WGP3njtByE7HjWnLi3jmZGoZMyUI84I5OfWaWecbeAXvLDZ2GIgiY/aV43rQyZD HewqBvi4axJg9nQ7HNmUTEPJawV9c5azefSrFB1eW/H2dzlgvugU3pxUfwpDA4f/NEkU mNksbcUPx/82z0GLbuzsSlkcg1GKpk7RV7cQqlRLu5OLZoRAvNLEuKpas3gP9nQIEikq P/Nv3+h/KOHDrRDp95U9gn9SBdwgHVE9fv8x9WLlYFRJrStGMffRZxRyCpL6UAtrMDM6 5nKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+Vpv87sg+/5qiZS3pOHNbdoWVr1LHyG34wJFi6NlKqY=; b=yNui4P5L0rcjN5ZOki6CgaCSD+oRMPqPp/1+t1++vVd5HPO9YbE/+hphUCR55WRTW+ /cRPp1NzjrM+FziL6j7mRr3m9CPfo700eIKVJrTJ5TMAJXfFO7zxpb/VYH0WfWwwHXOM oxbNxprO97bOEso01fdtDjUzGEbj9R5n7scV3qQ/ChzE5lENFqk5VTpdN1tTMXC7llbT TE1W0D3YMQb/nLFxBpXQmsa3clatNnmu7kZ2CoSRnV9Dw0OdauHmcuKTMII4AMJ+8YEK wZ9V/33ICoDjrgaZpz85qBVEe5gPdg1KxrbHlrowqgbFJAuydlG8R90vMmDnHPpF0nrW p0+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vQWLjwSp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a170902f70e00b00188c7b09446si14493087plo.44.2022.12.27.09.44.23; Tue, 27 Dec 2022 09:44:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vQWLjwSp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbiL0RKS (ORCPT + 66 others); Tue, 27 Dec 2022 12:10:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbiL0RKK (ORCPT ); Tue, 27 Dec 2022 12:10:10 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B032B485 for ; Tue, 27 Dec 2022 09:10:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+Vpv87sg+/5qiZS3pOHNbdoWVr1LHyG34wJFi6NlKqY=; b=vQWLjwSpZwpZyvDw/Yec+DCAJq IllPu/c5h7Tl5gtwiggcgUQv5LxEUG8y3tMIL2qnhUGc+dXczb2BtSM9bFHIf73Uo5uYwRuauo24j 9A04uwIWqmJDrOg+N9X3PY8yYZ5INs2Txe6dqqQmAixHPjmQfnjUhk6+cv9L0RLSjH7dyUZlq1wB4 LM4udSulxGKlh3kyR6YiuDb1oNUdD7aT1+3/+ByPPA2elaZdq1zqFjY48SD+9Pd3KmRb7n3XhOMRW pnD0hI3DdSTdkGyVlKl52aaX1I6Ygmh8ZwG7zZ4d3IlmLrT5JKi1MD+aHUGOsw8dW7Xijg1z6YEE1 COgSpuGA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADSp-00En8A-KV; Tue, 27 Dec 2022 17:10:07 +0000 Date: Tue, 27 Dec 2022 09:10:07 -0800 From: Christoph Hellwig To: Mike Leach Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, acme@kernel.org, james.clark@arm.com Subject: Re: [PATCH v5 4/6] coresight: configfs: Modify config files to allow userspace use Message-ID: References: <20221219234638.3661-1-mike.leach@linaro.org> <20221219234638.3661-5-mike.leach@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221219234638.3661-5-mike.leach@linaro.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 19, 2022 at 11:46:36PM +0000, Mike Leach wrote: > Update coresight-config.h and the coresight-config-file.c & .h > to allow use in userspace programs. > > Use __KERNEL__ defines to filter out driver only structures and > elements so that user space programs can use the descriptor structures. > > Abstract memory allocation in coresight-config-file.c to allow read > file functions to be run in userspace and kernel drivers. That's now how kernel code is written.