Received: by 10.223.164.221 with SMTP id h29csp4169421wrb; Wed, 4 Oct 2017 15:08:02 -0700 (PDT) X-Received: by 10.98.204.201 with SMTP id j70mr21632815pfk.117.1507154882754; Wed, 04 Oct 2017 15:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507154882; cv=none; d=google.com; s=arc-20160816; b=YPhVYX0xGsya/so75dxqbuwkaY3iEb9mBHcSdjsB03/7yyDUZ5SuG8c5W3Vm6aFwnv BbDBPXMnU6PY6Wl9rRnTBJQnnHCECsBr3aP4OfeqIoLIxIiiLZYhWBgTueRxmmfRJ2tn NAjXJrVDzIVWyhREN2Rga7+/9PjzPRzemSeiy7EdKpsKmk46AMyQSZzF3oZBR4nGZ0Sa 36J37ZLvs+1DQNKGRvXrClS8fV1DK4ezYtzb20qeQXMSDec6wI+729/dZ7gHecb2c4f5 SOeYbwUS4VzBvyPT4uCL2pz8QP/XvrsHEn6M0gVqC9Skr3YEvZoKJYOM9zIx0u6jV4CA RhXw== 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:arc-authentication-results; bh=/Fw9yVzBjHhPkT37Hb0HVvCNjN25tTrcrdEXcbnxn2E=; b=Vd4jqtsZeUIfzmpXuPJcTea79ycruvGkN3zHhzfrNV4LOvPohfeSG5DK/vdrkdCozJ gUk65OE+wvyAciAvBRbOSVBJSCPEwQT2F1XWQ5Fcx77FulYc6/O5TJ2JUtkQK3fDkRMs Vm3lo+hRgAjydnettq24ut5Gd4n7LT3yss/jqOF9W1HBHVcSavuesqRoI+AsLezC/oXX K9pao+DJHLa0roCVRukOblSGzaJsHLbKJCvipvFZQtN9nSHt20PDwhAkfr8kimAeZPjt YhWFTRomO0c46UteB6AjNKXnALdQvZUjjqkNGsxG0PmS0lT9GI4GOsrwvc80vbQb4FDn TK+Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si12934311plc.318.2017.10.04.15.07.48; Wed, 04 Oct 2017 15:08:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbdJDWH0 (ORCPT + 99 others); Wed, 4 Oct 2017 18:07:26 -0400 Received: from mail-qt0-f179.google.com ([209.85.216.179]:44554 "EHLO mail-qt0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbdJDWHZ (ORCPT ); Wed, 4 Oct 2017 18:07:25 -0400 Received: by mail-qt0-f179.google.com with SMTP id v28so13264205qtv.1 for ; Wed, 04 Oct 2017 15:07:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/Fw9yVzBjHhPkT37Hb0HVvCNjN25tTrcrdEXcbnxn2E=; b=LnkpnDbtXbxRq2iZpiRfdihlNVEoDKAxAin3BSvJL19C0ow9UFDg5FZEM9G+mZPQ4G cWtWnakwmVYZOoJLMPXkLjhnGDnZbsYxbaEuv+D69eH9jks+r7qbFXZ7X5MJKF3BDZcV ymuYgbe6f3XnH1icpiJLX0PZ6j2wmTm5y7n6fpeROelgrsuIkW5u7ILTP/4bTCd6bBzY Qm7TcM43RiFcfnbT41KDeXU+6J/qEgC/gI9XXpU4+E3T0BbHpIYGkn9MHS5Gwr5JquJk RGTMB1oj4vM9CFBeXM9Ma9OPRgykIBYGbinS1h7R5AEmzD7gfIb3NI+69l2QKVWFc2kW dxFw== X-Gm-Message-State: AMCzsaVOyjA+hkYdM33m+UhoARDoSBvymooMl3xpgNvvtfpctJvd23Q6 /ZRocer3VAKukCI2Y7TEJatGVA== X-Google-Smtp-Source: AOwi7QBHqETqUVpo3TFAOhunuHsJ/LRB9mep+NAnUKkJaxBRkq1HYp0aRtYFFEi9QAYoLnjzD5GRZQ== X-Received: by 10.200.52.98 with SMTP id v31mr2881207qtb.269.1507154844561; Wed, 04 Oct 2017 15:07:24 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::e174? ([2601:602:9802:a8dc::e174]) by smtp.gmail.com with ESMTPSA id z187sm10497560qke.0.2017.10.04.15.07.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 15:07:23 -0700 (PDT) Subject: Re: [PATCHv2 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing To: Pintu Kumar Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Pintu Kumar References: <1506449281-8790-1-git-send-email-pintu.ping@gmail.com> <1507049339-16963-1-git-send-email-pintu.ping@gmail.com> <414b44ec-6500-c3e5-f8ca-ce1d21a3eb58@redhat.com> From: Laura Abbott Message-ID: <10929681-0816-18d5-1bcb-5616462eecb2@redhat.com> Date: Wed, 4 Oct 2017 15:07:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2017 04:29 AM, Pintu Kumar wrote: > The whole thing about this test is to share an FD over 2 independent processes. > I think sharing an FD using fork() [parent/child] is not a real use > case scenarios. > Some people may not like the fork example. > Initially when I started with ION, I also needed an FD sharing mechanism between > 2 different process. Thus I came up with this framework using ipcsocket. > Later, if required, we can even replace this with binder_ipc for > android use cases. > Anyways, binder_ipc also internally uses the same concept as this ipcsocket. > To reduce the pain, we can invoke both the tests from a single shell scripts. > I will try to include the same in kselftests, if possible. > > If fork example is really required, we can add another test for it. > This is my opinion. You don't have to treat them as parent/child. Once they've forked the processes are independent so you can use the same socket behavior you've implemented here. I prefer the fork behavior over the shell script because it means I only need to copy one file vs. three if I'm testing in other environments but I'm not that opposed. Thanks, Laura From 1580326320135552229@xxx Wed Oct 04 11:30:23 +0000 2017 X-GM-THRID: 1579656416160844925 X-Gmail-Labels: Inbox,Category Forums