Add per-process pthread init probes installation 61/131761/6
authorAlexander Aksenov <a.aksenov@samsung.com>
Thu, 25 May 2017 15:17:24 +0000 (18:17 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Fri, 2 Jun 2017 12:50:36 +0000 (15:50 +0300)
commit44062af1a4bb7caabfc842dbc5fd58b1b51d97a9
tree835f7756e58e517636d3b9acc79b9cd757e48a0a
parent1b019da9280cba73107118522c78ff4f16094a37
Add per-process pthread init probes installation

Library can be loaded very early, when pthread was not inited.
Due to pthread library usage in our service probe lib, this causes
assert in library constructor. To prevent this pthread init probe
is installed, and so we can identify when it is inited.
This mechanism was previously made for got patcher, now this is
preload implementation.

This commit is related to swap-manager's commit
Pass pthread's init data to preload module

Change-Id: I83954951e6797eaf583c44f3a348d8d37a277cbf
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
loader/loader_pd.c
preload/Kbuild
preload/preload_debugfs.c
preload/preload_module.c
preload/preload_module.h
preload/preload_process.c [new file with mode: 0644]
preload/preload_process.h [new file with mode: 0644]