summaryrefslogtreecommitdiffstats
path: root/libion
Commit message (Collapse)AuthorAgeFilesLines
* libion: cleanup loggingMark Salyzyn2018-03-071-5/+5
| | | | | | | | | Get rid of trailing newlines as they just take wasted space. Added a missing strerror(error) expansion for failure to open. Test: compile Bug: 74258013 Change-Id: I04c0038e1ca53d2ffe0a78386744f12874215c19
* bpfmt.Elliott Hughes2018-02-161-1/+0
| | | | | | Bug: N/A Test: builds Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
* ion_test.c: Fix c/p error in arg parse.Steven Moreland2018-02-141-1/+1
| | | | | | Bug/Test: N/A Change-Id: Iad1ac3f057ed153429780242e138cec58e8ee764
* Merge "libion: Adapt to new ION interface"Treehugger Robot2017-09-212-58/+109
|\
| * libion: Adapt to new ION interfaceLaura Abbott2017-08-102-58/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.12+ kernels have substantially different ION interface. Adapt libion to the new one. In doing so, for sake of clarity, rename ION_IOC_ALLOC to ION_IOC_NEW_ALLOC the to denote new mechanism. An ion_is_legacy() is provided to check whether the kernel supports old ION interface or new. Userspace has the responsibility to use it accordingly. Devices using kernels without the 4.12 ION updates, can continue to use libion as before, and will have no impact. Only devices using libion with 4.12+ kernels (or kernels with backported ION updates) will need to update their users of libion, including gralloc. Test: validated with hikey gralloc, with both old and new kernels Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> [sumits: keep old abi compatibility] Change-Id: I7899af9e812d0cf5e73b443a3f0248118b42a382
* | Merge "libion: add 4.12+ kernel headers for forward compatibility"Treehugger Robot2017-09-201-0/+125
|\|
| * libion: add 4.12+ kernel headers for forward compatibilityLaura Abbott2017-08-101-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | v4.12+ mainline kernels have an updated ION ABI. This patch introduces the changes in a new temporary file to co-exist for older kernels. This will ensure no change for existing libion users using older kernels. Test: validated with hikey gralloc Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> [sumits: moved the headers into new file] Change-Id: Iea1dc74991cd6a263f370c288ce65d54a3dade87
* | Mark the modules as VNDK-SP in Android.bpJustin Yun2017-08-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a VNDK-SP module, Android.bp must have 'vndk' tag as well as 'vendor_available: true'. The 'vndk' tag for VNDK-SP formated as follows: vndk: { enabled: true, support_system_process: true, }, VNDK-SP modules will be installed both in system/lib(64) as normal and in system/lib(64)/vndk-sp as a vendor variant. Bug: 63866913 Test: build and boot with BOARD_VNDK_VERSION=current Merged-In: I51fe0859f63ad58b7b91909e7d7d4206443228cd Change-Id: I51fe0859f63ad58b7b91909e7d7d4206443228cd (cherry picked from commit aeb68e86e4e335d4b201c46099cc2ce1256beec2)
* | Remove LOCAL_CLANG and clang: trueLennart Wieboldt2017-07-251-1/+0
|/ | | | | | | | clang is the default compiler since Android nougat Test: mma & verified it´s still build with clang Change-Id: I34adaeef2f6558a09f26027271222bad94780507 Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
* Mark libion vendor_available.Jayant Chowdhary2017-05-241-0/+1
| | | | | | | | | | | | | libion belongs to vndk-cap. Mark it vendor_available to enable vndk abi stability checks on it. Details: https://android-review.googlesource.com/368372 Test: mm -j64 Bug: 38244611 Change-Id: I8ac290d435b7c4dc5e669bfccb4562495ce92516
* liblog: use log/log.h when utilizing ALOG macrosMark Salyzyn2017-01-111-1/+1
| | | | | | Test: compile Bug: 30465923 Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
* ion.c: add O_CLOEXEC to /dev/ion openNick Kralevich2016-11-291-1/+1
| | | | | Test: device boots and no obvious problems. Change-Id: I0845b79de49b77878adaf6cd14cc506f7586cccb
* libion: open /dev/ion read-onlyJeff Vander Stoep2016-10-212-2/+2
| | | | | | | | | | | /dev/ion driver does not recognize the write operation [1] so open it read-only. [1] http://lxr.free-electrons.com/source/drivers/staging/android/ion/ion.c?v=4.5#L1369 Test: Angler builds and boots Bug: 32120194 Change-Id: I9b26d43ea32cb24426404668701df1f1648d336c
* system/core: preparation to pull back interfaces from android/log.hMark Salyzyn2016-10-201-0/+1
| | | | | | | | | | | | | | | | Point to log/log.h where necessary, define LOG_TAG where necessary. Accept that private/android_logger.h is suitable replacement for log/logger.h and android/log.h. Correct liblog/README Effectively a cleanup and controlled select revert of 'system/core: drop or replace log/logger.h' and 'system/core: Replace log/log.h with android/log.h'. Test: compile Bug: 30465923 Change-Id: Ic2ad157bad6f5efe2c6af293a73bb753300b17a2
* system/core Replace cutils/log.h with android/log.hMark Salyzyn2016-09-301-2/+2
| | | | | | | | | | | Should use android/log.h instead of cutils/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
* Convert more Android.mk files to Android.bpDan Willemsen2016-07-134-55/+61
| | | | | | | These modules have their dependencies satisfied, and aren't doing anything strange. Change-Id: I72039a15256cbd5e5eee0d79a15d66d74a6c087d
* Fix misc-macro-parentheses warnings in libion, libsparse, libmem*Chih-Hung Hsieh2016-05-181-1/+1
| | | | | Bug: 28705665 Change-Id: I3dd5c086787f5e48ab100a71a42109ea0e417bf9
* Use unique_ptr to free objects when ASSERT* fail.Chih-Hung Hsieh2016-03-043-55/+32
| | | | | | | Now need c++14 and clang to compile std::make_unique. BUG: 27479198 Change-Id: Ib0f2279de85c6259330d5436257f6b978420601a
* am 8d2cd035: am 2ddb9cb1: am ed43be39: Merge "Remove ↵Elliott Hughes2015-04-021-1/+0
|\ | | | | | | | | | | | | LOCAL_ADDITIONAL_DEPENDENCIES in cases where it\'s not needed." * commit '8d2cd03547c76f6c670b33d4fe6d44b646c14b45': Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.
| * Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.Elliott Hughes2015-04-021-1/+0
| | | | | | | | Change-Id: I720b8ef1050da45a7833adef8219b6acb2cf3a38
* | am 2e14f617: am 06b4e982: Merge "Add missing <malloc.h> and <string.h> ↵Elliott Hughes2015-01-281-0/+1
|\| | | | | | | | | | | | | includes." * commit '2e14f61731adbb1f0d0d54bab82bc2f0ecee6a11': Add missing <malloc.h> and <string.h> includes.
| * Add missing <malloc.h> and <string.h> includes.Elliott Hughes2015-01-281-0/+1
| | | | | | | | Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
* | am fcb2f0ab: am 0b7e6516: Merge "Libion: Remove unused variables"Andreas Gampe2014-11-252-2/+3
|\| | | | | | | | | * commit 'fcb2f0abe07ffd1c7a87bdcd7878a556ce0049fb': Libion: Remove unused variables
| * Libion: Remove unused variablesAndreas Gampe2014-11-252-2/+3
| | | | | | | | | | | | | | | | For build-system CFLAGS clean-up, fix unused variables. Fix missing close of file descriptors. Explicitly exit after a fork. Change-Id: I76affbc8647c3a760ed3cacc7f3ada3f59e283b1
* | am 9f5f81bf: am 133b7d4a: Merge "Don\'t manually link libgtest_main in ↵Dan Albert2014-11-141-1/+0
|\| | | | | | | | | | | | | libion tests." * commit '9f5f81bfa2c7eb581fd6b2c735ac143fca07e70e': Don't manually link libgtest_main in libion tests.
| * Don't manually link libgtest_main in libion tests.Dan Albert2014-11-141-1/+0
| | | | | | | | | | | | | | | | This is actually probably broken right now, since these tests are getting both the libc++ flavor and stlport flavor of libgtest_main. Bug: 15193147 Change-Id: Ic2f8dda98240c12591803f3c3522505314a05609
* | am 21d8d89c: am 06279285: Merge "Revert "Move some tests to libc++.""Dan Albert2014-11-121-0/+1
|\| | | | | | | | | * commit '21d8d89c7cda35ad1571375cf051c0b050604619': Revert "Move some tests to libc++."
| * Revert "Move some tests to libc++."Dan Albert2014-11-111-0/+1
| | | | | | | | | | | | | | | | The build system is still linking both libgcc and libcompiler-rt, which is causing duplicate symbol errors on some architectures. This requires a fix in the build system, so reverting for now. This reverts commit e3cccbfd4776644c7cb705d52f51ca948df34f9a.
* | am 498c8135: am 7d196df6: Merge "Move some tests to libc++."Dan Albert2014-11-121-1/+0
|\| | | | | | | | | * commit '498c8135b46b976806fb4e335071c11fc2c51776': Move some tests to libc++.
| * Move some tests to libc++.Dan Albert2014-11-111-1/+0
| | | | | | | | Bug: 15193147 Change-Id: I93244e4a5d0c751056910ec8005a92401d305716
* | libion: only modify parameters on successRom Lemarchand2014-10-281-6/+8
|/ | | | | | | Wait until a call is successful before modifying the value of pointers passed Change-Id: Iaeb2517c8cefeca2f60ebf610d38f264b48e59a0
* libion: Turn on -WerrorMark Salyzyn2014-05-211-1/+3
| | | | Change-Id: I0a933623147fb7bfb7251b1d9213cc174619ed42
* system/core 64-bit cleanup.Elliott Hughes2014-01-161-1/+1
| | | | | | | | | This cleans up most of the size-related problems in system/core. There are still a few changes needed for a clean 64-bit build, but they look like they might require changes to things like the fastboot protocol. Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
* libion: add apache license header to ion_test.cColin Cross2013-12-191-0/+16
| | | | Change-Id: Ie4b641cd62b56f713178932cc5c08083c0d2452a
* libion: initial unit testsColin Cross2013-12-1910-0/+1506
| | | | Change-Id: I5502b71d0c7c24d7fd59e4880033657f840b341a
* libion: update ion_test.hColin Cross2013-12-192-1/+4
| | | | | | | Update ion_test.h to include a padding word to keep the same struct size on 32-bit and 64-bit. Change-Id: I68086ce49ca4cc4ed8e251752eaed331a35fbbd2
* libion: update to latest uapi headerColin Cross2013-12-185-3/+382
| | | | | | | | | Pull the uapi headers from android-3.10 directly into libion. No other modules should be directly calling ion kernel interfaces, so there is no reason to have those interfaces exposed. Change-Id: I2d3fef08f6bb381522ecf7bcffea2b8280d5e737
* libion: return -errno from ion_closeColin Cross2013-12-181-1/+4
| | | | | | Return -errno from ion_close instead of -1 on error. Change-Id: Idb828aa4b4d1a660b79d2dba8be32f306eac959d
* libion: add include for size_tColin Cross2013-12-181-0/+1
| | | | | | Add sys/types.h include for size_t Change-Id: Ica764b1f5eca2df21d82c86493fc4e0d70b6628a
* libion: add NULL checksColin Cross2013-12-181-3/+20
| | | | | | Check for NULL in any library function that takes a pointer. Change-Id: I9ae8887b5ae0f231583173ee6a9dfd2f8c4611ec
* libion: clean up whitespaceColin Cross2013-12-183-294/+288
| | | | | | Convert everything to 4 space indents, no tabs. Change-Id: I376fad866864f0579b91ffad406e872fcce566ad
* libion: move ion.h into local include directoryColin Cross2013-12-182-0/+48
| | | | | | Export it to users of libion with LOCAL_C_EXPORT_INCLUDE_DIRS Change-Id: I4d00a9dd2e99953723994d0304ca77e0ad50a3a9
* ion: update struct and type definitions to match kernel headerRom Lemarchand2013-12-182-11/+11
| | | | | | | - Replacing struct ion_handle * with ion_user_handle_t - Replacing heap_mask field name with heap_id_mask Change-Id: Iaba1ccc62b9398a7b37c5a734bc21a9ecbbc8277
* libion: Use %zu for size_tAshok Bhat2013-12-101-2/+2
| | | | | Change-Id: If92fc31ab676a569530c21e655a1b5b451f5c5e5 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* Fix build.Elliott Hughes2013-11-211-1/+0
| | | | Change-Id: I6552bf9f83faa97bd5a844381aceb3ef85f86c76
* Add explicit sync call to ion libraryRebecca Schultz Zavin2012-09-201-0/+8
| | | | | | Bug: 6854979 Change-Id: I535d55af897eeb4ed707b5da54f3fbf36afa452c Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* Modify ion to use new definition of ALLOC ioctl argumentRebecca Schultz Zavin2012-06-282-16/+26
| | | | | | | | | Also add ion_alloc_fd helper for when you only want a filedescriptor and know you won't need to access this handle again by its ion_handle Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> Change-Id: Ia4bae22946b0078084b62f5447fecbf261dfaa83
* libion: use correct build vars in makefileDima Zavin2012-02-271-2/+2
| | | | | Change-Id: I74c8e723e4f15d3806c1834b069bcb1fd56ac4fa Signed-off-by: Dima Zavin <dima@android.com>
* Add ion helper libraryRebecca Schultz Zavin2012-02-233-0/+431
This library contains helper functions for using ion Change-Id: I7d7f76d6d3f36cd94d67797a38099a94214392b1 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>