Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1740154

Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing

From Laura Abbott <labbott@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing
Date 2017-09-26 21:30 +0200
Message-ID <uu3Im-pY-25@gated-at.bofh.it> (permalink)
References <uu2sX-8cl-59@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 09/26/2017 11:08 AM, Pintu Agarwal wrote:
> This is a test utility to verify ION buffer sharing in user space
> between 2 independent processes.
> It uses unix domain socket as IPC to transfer an FD to another process
> and install it.
> 
> This utility demonstrates how ION buffer sharing can be implemented between
> two user space processes, using various heap ids.
> 
> This utility is verified on Ubuntu 32-bit machine using 2 independent
> process such as: ionapp_export (server) and ionapp_import (client).
> First the server needs to be run to export FD to the client.
> This utility works only if /dev/ion interface is present.
> 
> Here is a sample demo example:
> 
> linux-stable/tools/android/ion$ sudo ./ionapp_export.out -i 1 -s 10
> heap_type: 2, heap_size: 10
> Fill buffer content:
> 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd
> Sharing fd: 6, Client fd: 5
> <ion_close_buffer_fd>: buffer release successfully....
> 
> linux-stable/tools/android/ion$ sudo ./ionapp_import.out
> Received buffer fd: 4
> Read buffer content:
> 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd
> Fill buffer content:
> 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd
> 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd
> 0xfd 0xfd 0xfd 0xfd
> <ion_close_buffer_fd>: buffer release successfully....
> 
> Signed-off-by: Pintu Agarwal<pintu.ping@gmail.com>

This is a good start on a test app for Ion but it needs to be
updated to use the new ABI.

Thanks,
Laura

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing Pintu Agarwal <pintu.ping@gmail.com> - 2017-09-26 20:10 +0200
  Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion  buffer sharing Pintu Kumar <pintu.ping@gmail.com> - 2017-09-26 21:00 +0200
  Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion  buffer sharing Laura Abbott <labbott@redhat.com> - 2017-09-26 21:30 +0200
    Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion  buffer sharing Pintu Kumar <pintu.ping@gmail.com> - 2017-09-27 16:30 +0200
      Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion  buffer sharing Pintu Kumar <pintu.ping@gmail.com> - 2017-09-28 20:20 +0200
        Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion  buffer sharing Pintu Kumar <pintu.ping@gmail.com> - 2017-09-30 06:10 +0200
      Re: [PATCH 1/1] [tools]: android/ion: userspace test utility for ion  buffer sharing Pintu Kumar <pintu.ping@gmail.com> - 2017-09-28 20:20 +0200

csiph-web