Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3289254lfo; Mon, 23 May 2022 00:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyijypz20X7oYwzSfMex7rK3KwJO/mKjxu1LzfjBFezusFDInWIhHUYxYeVHFX/qRUCmQjZ X-Received: by 2002:a17:902:e5c2:b0:161:fb68:cd28 with SMTP id u2-20020a170902e5c200b00161fb68cd28mr13161621plf.133.1653292121113; Mon, 23 May 2022 00:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653292121; cv=none; d=google.com; s=arc-20160816; b=PpZt7XZzs4iT7HkP+rq8RI9mFGMSyMpwIcg2i+2k+pElwk2ix9I+9QJa/yi7qQAkTH eGNRQL9VYeNgGkF9R3ToTf1Y665tEq3Bzj6cI20XEQKxrzY/SWH1fyjuBD/TbX0V4uci 1Kt2bO1Ki7BpUp1IYesA+Vybq6gac23yqhCzzBYcCSWrWNUdf9Rg0sO5tLhY3UIcUkff bfrEO0HeTVuhT7CRaAwIxL5JMN7NknV3WcOy5NrXV1QtHa+W4rvS9OoHPtRP7ySZ1QpR aQkBDYnnCr5MO9w3JKFGC5CpYo0lUXsc/IvxNy21w7KRX/gcESRDJB+1B/xDw0bk6Stb F+Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=o0OwdfIZ/NQrnns2MxPTOVVMj6KI4K9Vk1Y7YfzYv1M=; b=vtx30oGmV4ly+V3NLpgmSSRHEk0lw7r9hqNOrZxxuzaX166bFGOSL7TyC7BsVkjrpP nih9uZjggwJC20q0AlFV37p1/EoZD7HVphh+ivrCYQU1Np8mL9zM9d/khj2yHhDFNnrJ d0KaApJLU0jly1VhiUaw2i/4jZTi2w+lSjZuxcmIquzvmONxnRmkjcp2VbcrQ0mRur4y ExoBZYnsiWRFGx1jcjaK+izsHpOTXYGx7JXHt/AUf3nD8qKM1MqcxilToJjmFlbtAJcY rlrNnUjgSb3x+eTASuQguoKs76bCGFLfLC/AYHrAySb7iQYEkkyFTK3/bH7732cbnqn2 rLsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oMoyK3w1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s6-20020a056a0008c600b004faac3a73f4si14212837pfu.17.2022.05.23.00.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:48:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oMoyK3w1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E6D3CFE3D; Sun, 22 May 2022 23:53:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241982AbiEUKPQ (ORCPT + 99 others); Sat, 21 May 2022 06:15:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbiEUKPO (ORCPT ); Sat, 21 May 2022 06:15:14 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7033492D11; Sat, 21 May 2022 03:15:12 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id 77A5C1F465E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653128111; bh=U5YYJMFVDj3+ZXv5ZAFidJafbwiSoIY5HnfXpGh6rAQ=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=oMoyK3w1YJ2PVNfPvw+RD6t1fHMeeqpJmiDcE8SpeQ/4muCzkrsfGVkHgvqJ9C6Hn N88TlBup/hKQ3eFIWH9s0JoZvlDU8HHTOh6SWzS5BSSymMx96ikENa15ZWXHKAAaID PHVtndYhUdryLb8NM7id4YsBl1GrJ9G0SyFwd7ckZBB4o0yWbX26QprnBdiNu1Dgng BHgEzene+7JSCWDzDkdfHhTRnlb/4V/KG1eoK5AYJEiB1qLWyE1STxBG96D2/5DVch eDRa7e7UEBzQV8bq6hqPJLRjjl8/Uhh9w3mEZW1GJPiltOKPxE8Kjb/jC52lITXsAh d83BYBjPrh67A== Message-ID: <0d63c264-520c-687d-7ac6-26cb3f119f0b@collabora.com> Date: Sat, 21 May 2022 15:15:03 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Cc: usama.anjum@collabora.com, daniel@ffwll.ch, tj@kernel.org, hridya@google.com, christian.koenig@amd.com, jstultz@google.com, tkjos@android.com, cmllamas@google.com, surenb@google.com, kaleshsingh@google.com, Kenny.Ho@amd.com, mkoutny@suse.com, skhan@linuxfoundation.org, kernel-team@android.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v7 6/6] selftests: Add binder cgroup gpu memory transfer tests Content-Language: en-US To: "T.J. Mercier" , Shuah Khan References: <20220510235653.933868-1-tjmercier@google.com> <20220510235653.933868-7-tjmercier@google.com> From: Muhammad Usama Anjum In-Reply-To: <20220510235653.933868-7-tjmercier@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable 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 5/11/22 4:56 AM, T.J. Mercier wrote: > .../selftests/drivers/android/binder/Makefile | 8 + > .../drivers/android/binder/binder_util.c | 250 +++++++++ > .../drivers/android/binder/binder_util.h | 32 ++ > .../selftests/drivers/android/binder/config | 4 + > .../binder/test_dmabuf_cgroup_transfer.c | 526 ++++++++++++++++++ > 5 files changed, 820 insertions(+) > create mode 100644 tools/testing/selftests/drivers/android/binder/Makefile > create mode 100644 tools/testing/selftests/drivers/android/binder/binder_util.c > create mode 100644 tools/testing/selftests/drivers/android/binder/binder_util.h > create mode 100644 tools/testing/selftests/drivers/android/binder/config > create mode 100644 tools/testing/selftests/drivers/android/binder/test_dmabuf_cgroup_transfer.c > > diff --git a/tools/testing/selftests/drivers/android/binder/Makefile b/tools/testing/selftests/drivers/android/binder/Makefile > new file mode 100644 > index 000000000000..726439d10675 > --- /dev/null > +++ b/tools/testing/selftests/drivers/android/binder/Makefile > @@ -0,0 +1,8 @@ > +# SPDX-License-Identifier: GPL-2.0 > +CFLAGS += -Wall Please add $(KHDR_INCLUDES) here to include the uapi header files from the source tree. > + > +TEST_GEN_PROGS = test_dmabuf_cgroup_transfer Please create a .gitignore file and add test_dmabuf_cgroup_transfer to it. > + > +include ../../../lib.mk > + > +$(OUTPUT)/test_dmabuf_cgroup_transfer: ../../../cgroup/cgroup_util.c binder_util.c -- Muhammad Usama Anjum