Add dump_systemstate-service 91/253491/10
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 15 Feb 2021 12:16:53 +0000 (13:16 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 9 Mar 2021 22:02:37 +0000 (23:02 +0100)
commit7cc390e1b4c5f4246b27671cc98a2f027d47d93d
treee3997a56d69c01e1a8ce8763f8f6421fc33ddd27
parente7e5010e3bcc171d580461982e16b0993441f62a
Add dump_systemstate-service

The service registers with the name org.tizen.systemstate and provides
the output of defined commands via dumpsys interface. The registration
of commands is done by adding dumpsyscmd parameter to the extra program
configuration file. For example, the following configuration in
/etc/dump_systemstate.conf.d/programs/crash-worker-programs.conf:

  ...

  [buxton system]
  order=141
  cmdflag=b
  title=System configuration
  path=/usr/bin/buxton2ctl
  args=dump system
  dumpsyscmd=buxton_system
  allowdumpsysargs=yes
  ...

allows to get the output of the command:

  /usr/bin/buxton2ctl dump system

by calling:

  dumpsys org.tizen.systemstate buxton_system

The allowdumpsysargs parameter is responsible for the possibility to
provide custom parameters via dumpsys (disallowed by default).

Change-Id: Iff9569d4975ab97addfcf32ea6c22d7237275b35
CMakeLists.txt
packaging/crash-worker.spec
src/dump_systemstate-service/CMakeLists.txt [new file with mode: 0644]
src/dump_systemstate-service/dump_systemstate-service.c [new file with mode: 0644]
src/dump_systemstate-service/dump_systemstate.service [new file with mode: 0644]
src/dump_systemstate-service/org.tizen.dumpsys.providers.org.tizen.systemstate.service [new file with mode: 0644]
src/dump_systemstate/extras.c
src/dump_systemstate/extras.h
src/dump_systemstate/programs/crash-worker-programs.conf
src/dump_systemstate/programs/programs.conf.example