Add crash manager API 74/212874/13
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 25 Jul 2019 09:02:43 +0000 (11:02 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 26 Sep 2019 11:25:02 +0000 (13:25 +0200)
commit0d395b1e977387028e9515944b9c4e5731f52f19
tree7a27312421487fece9c7d3208c48a4c054bdfdb3
parentaa2021fef99fb09e9b1080f613ad9b9d1e790d78
Add crash manager API

Privileged processes can send a D-Bus method call to create report of
any living process. Signature is (iss):

- INT    (in) PID
- STRING (in) dump reason
- STRING (out) report path

There is a library libcrashservice that sends the D-Bus method call.

A function signature is:

    int livedump_pid(pid_t pid,
                     const char *dump_reason,
                     char *report_path);

Change-Id: Id8528bdbaac517d4b5fc649821368e0ff020862f
19 files changed:
CMakeLists.txt
packaging/crash-worker.spec
packaging/crash-worker_system-tests.spec
src/crash-manager/crash-manager.c
src/crash-manager/crash-manager.h
src/crash-service/CMakeLists.txt [new file with mode: 0644]
src/crash-service/crash-service.c [new file with mode: 0644]
src/crash-service/crash-service.conf [new file with mode: 0644]
src/crash-service/crash-service.pc.in [new file with mode: 0644]
src/crash-service/crash-service.service.m4 [new file with mode: 0644]
src/crash-service/libcrash-service.c [new file with mode: 0644]
src/crash-service/libcrash-service.h [new file with mode: 0644]
src/crash-service/org.tizen.system.crash.livedump.service [new file with mode: 0644]
src/shared/util.c
src/shared/util.h
tests/system/CMakeLists.txt
tests/system/libcrash-service/libcrash-service.sh.template [new file with mode: 0755]
tests/system/utils/CMakeLists.txt
tests/system/utils/libcrash-servicetest.c [new file with mode: 0644]