History log of /system/core/libsync/sync.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6cd0fc56c0a2cb8fdf897f49f013f86dc698d793 19-Feb-2017 Jesse Hall <jessehall@google.com> sync: Cache knowledge of kernel uapi version

Previously all libsync calls would try first the modern/mainline uapi
and if that failed try the legacy uapi, or vice versa. This is
inefficient, and confusing when looking at strace. With this change,
after the first successful syscall, libsync know's what uapi version
the kernel supports, and will only try that version in the future.

Test: sync-unit-tests on bullhead
Change-Id: I8b5de0194da0cfc6c080c0180318e16bb673d3c9
/system/core/libsync/sync.c
41129a2526d4a8bc3510bc65c0e39e1e9d4700d2 14-Feb-2017 Jesse Hall <jessehall@google.com> sync: rename sync/sync.h to android/sync.h

Leave a temporary symlink from the old name to avoid having to change
all dependencies simultaneously.

Bug: 1901466
Test: m
Change-Id: Id210f0091457e52e1a6e048d241a723bdbe8779b
/system/core/libsync/sync.c
b7fdb2a1284143b8cee11483646b8753262ad165 13-Feb-2017 Jesse Hall <jessehall@google.com> sync: move declarations from sync/sync.h to sync.c

None of these should be needed or used outside of sync.c.

Test: lunch bullhead-eng ; m
Change-Id: I548a499d0e2ada2ab4987e63a8116327c3be0076
/system/core/libsync/sync.c
836661616fcf4bc023b192d1c320f0727a9dfef9 13-Feb-2017 Jesse Hall <jessehall@google.com> sync: implement sync_file_info

Also modifies sync-unit-test to use sync_file_info instead of the
deprecated sync_fence_info, but check that they match in several tests.

Bug: 35138793
Test: sync-unit-tests on bullhead
Change-Id: Ic672d1c89798435a8b71469500e82c770a66bf4d
/system/core/libsync/sync.c
89530820d7f5837f00f3f04e18dfa05c7506eb68 13-Feb-2017 Jesse Hall <jessehall@google.com> sync: refactor sync_fence_info

Split the sync_fence_info implementation into multiple functions. This
clarifies the logic, and allows the parts to be reused in the upcoming
sync_file_info function.

Test: sync-unit-tests on bullhead
Change-Id: I0ea37067dddf41b831670f08eb99e0b7fd52adce
/system/core/libsync/sync.c
077ffd5055538e79d20fb5de964083cfbe10dc3f 13-Feb-2017 Jesse Hall <jessehall@google.com> sync: Use correct type in size calculation

The previous and current types are the same size, so this wouldn't
have caused a bug in practice, but it is confusing, and would have
been a problem in the unlikely event we changed the size of one of the
types.

Test: sync-unit-tests on bullhead
Change-Id: Ic43b81f3b4ff214af86b6b6d4d02c648f95d0c4b
/system/core/libsync/sync.c
61ab0d74d218d0be32d0cab1c7ee22c5e12216fe 11-Jun-2016 Gustavo Padovan <gustavo.padovan@collabora.com> libsync: add support to new Sync API

Change libsync functions in a way that it can run dynamically on both
APIs.

v2: fix whitespace changes and poll return handling

v3: handle error cases on sync_wait()

Test: Sync unit tests still passes.
Change-Id: I743ab92ce39cbfa75dca41dd0a435efa9f2aab66
hange-Id: Ib56f2c6441b41028bc9f66998676790b7713988a
/system/core/libsync/sync.c
ffc687baad033ecc96f6c560b205fea61afe9e41 10-Jun-2016 Gustavo Padovan <gustavo.padovan@collabora.com> libsync: open new location of sw_sync file

sw_sync file for debug was moved to debugfs. Try to open it and if it
fails try to open /dev/sw_sync.

Test: Sync unit tests still passes.
Change-Id: Ie078fbc2eb5294f28b916a9e65b7fcd3a18a8580
hange-Id: I216874964368d939bed2779d98cd89e527a57d45
/system/core/libsync/sync.c
d6bbc5de66fc7ac51773bc92d6a48a94e622f9b1 10-Jun-2016 Gustavo Padovan <gustavo.padovan@collabora.com> libsync: move kernel headers for sync ioctls to sync.h

This patch moves the legacy API to the internal sync.h header
and add documentation to it.

Test: Sync unit tests still passes.
Change-Id: I9b17eb23af30043b3df5fb9e857affad68ba8521
/system/core/libsync/sync.c
1514bb4f2f6a238b48092b61e55a8a8909e059cc 13-Dec-2016 Christopher Ferris <cferris@google.com> Update for kernel headers v4.8.14.

Update sync.c to include the structurs from sw_sync.h. This uapi
header has been deleted.

Test: Built mips/arm/arm64/x86/x86_64. Built and booted angler.
Change-Id: I2495cb17b35f697fb8a2a00f6633ccb53f78293f
/system/core/libsync/sync.c
f83c7923f956328a022cddcfcd2d13d797a22a63 24-Aug-2016 Christopher Ferris <cferris@google.com> Update for kernel headers v4.7.2.

The new uapi kernel headers added a new SEGV reason code, so
add it to the tombstone code.

Update sync.c to include the needed data structures itself. Someone
else will be fixing this to work on old versus new kernels.

Change-Id: Icb27713ea38a20003c7671a9bca262eebd96099b
/system/core/libsync/sync.c
a744b05984a963966cec08758ffe582d241be9d7 28-Jan-2015 Elliott Hughes <enh@google.com> Add missing <malloc.h> and <string.h> includes.

Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
/system/core/libsync/sync.c
984d35703d5c6738253193bd53da9dedb3b58243 22-Aug-2012 Erik Gilling <konkers@android.com> update libsync to support new timeout semantics

Change-Id: Ibedbd261bb96a84785c4e679b6fc4061287d5d7d
/system/core/libsync/sync.c
3be33e46187bfb1e42099bb4ba061a494356576c 14-Jun-2012 Jamie Gennis <jgennis@google.com> libsync: remove linux includes from sync/sync.h

This change removes the #includes of "linux/*.h" headers from the libsync
header. It currently does this by copying the needed structs that are in the
linux headers. This is intended to be a temporary solution.

Change-Id: Ie7e1a8e05fcf8809ba4aa0e2427efe141dae5327
/system/core/libsync/sync.c
196b3a5f6f48649500909c66177967abaf05b898 08-Mar-2012 Erik Gilling <konkers@android.com> sync: Add lib sync helper library

Used to talk to kernel synchronization framework

Change-Id: I66e1f4a90f5d58d384bf1cec09db52101f182c5e
Signed-off-by: Erik Gilling <konkers@android.com>
/system/core/libsync/sync.c