platform/core/system/argos_watchdog.git
3 years agoFix wathcdog macro name 74/233774/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.114031 accepted/tizen/7.0/unified/20221110.061544 accepted/tizen/7.0/unified/hotfix/20221116.105650 accepted/tizen/8.0/unified/20231005.093723 accepted/tizen/unified/20201105.124403 submit/tizen/20201104.064817 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
Youngjae Cho [Tue, 19 May 2020 05:14:10 +0000 (14:14 +0900)]
Fix wathcdog macro name

Change-Id: I515c3674d9a7acc3bac640dd72662991589a0ab7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoWakeup watchdog thread when watchdog option is changed (Especially, in timeout change) 87/202787/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0_hotfix accepted/tizen/5.5/unified/20191031.023116 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090728 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113349 accepted/tizen/6.0/unified/20201030.115344 accepted/tizen/6.0/unified/hotfix/20201103.004025 accepted/tizen/unified/20190410.002033 submit/tizen/20190405.134858 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_5.5.m2_release tizen_6.0.m2_release
Kunhoon Baik [Thu, 4 Apr 2019 07:09:50 +0000 (16:09 +0900)]
Wakeup watchdog thread when watchdog option is changed (Especially, in timeout change)

When watchdog option is changed by aw_control API, the changed option should be applied at the moment.
However, current self-thread watchdog does not change the option until previous timeout is expired.
This patch is to fix the bugs for self-thread watchdog.

This patch is the part of origin patch - http://slp-info.sec.samsung.net/gerrit/#/c/3321696/

cf) Version is changed from 0.0.1 to 0.0.3 because the version including "multiple types of watchdog" patch should have been 0.0.2.

Change-Id: I792c0ecee6419d7e605a4f92fa06932c9ca5d774

5 years agoargos-watchdog: support multiple types of watchdog 69/189669/6 submit/tizen/20181004.144412
ByungSoo Kim [Mon, 6 Aug 2018 10:15:18 +0000 (19:15 +0900)]
argos-watchdog: support multiple types of watchdog

- systemd watchdog :
  systemd daemon can use watchdog by calling the function sd_notify
  If each service wants to run the systemd watchdog,
  it have to declare "NotifyAccess=main" or "WatchdogSec=xx" in the service file.

- application watchdog :
  All process including system daemon, UI app, service app and so on can use the watchdog
  with type dbus.
  It will trigger the watchdog to resourced with dbus asynchronous call.
  Resourced will consider the device suspend / reusme as well as application life cycle.

- thread watchdog :
  If some process doesn't have any dependency with other daemon,
  it can trigger the watchdog by itself using pthread.
  It is the basic method which is used in many parts.

Change-Id: I3ef136b173f7649debffa0440bbecb9ebb76f78e
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 years agoargos-systemd: stop watchdog while suspending on idle 54/189254/5 submit/tizen/20181004.081606
ByungSoo Kim [Mon, 6 Aug 2018 08:06:57 +0000 (17:06 +0900)]
argos-systemd: stop watchdog while suspending on idle

Systemd sometimes misdetected the watchdog while device goes to the suspend state.
If other process failed to suspend,
montonic time of systemd goes on although some process has been already frozen.
So when device woke up, systemd expired the watchdog timer of frozen process and killed it abnormally.

If argos-watchdog receives dbus signal about both suspend and resume,
it can stop and restart the watchdog timer.

Change-Id: Ied02df1e81cca21a05edbeb84f6746d612cc6b05
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 years agocommon: add printing dlog 53/189253/3
ByungSoo Kim [Mon, 6 Aug 2018 06:04:54 +0000 (15:04 +0900)]
common: add printing dlog

support debugging infrasturcture by using dlog

Change-Id: I792105a1829f910ac8610419b44f184be0869021
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 years agoAdd .editorconfig file 52/189252/1
Łukasz Stelmach [Fri, 14 Sep 2018 10:59:27 +0000 (12:59 +0200)]
Add .editorconfig file

The file holds basic configuration for text editors regarding
coding style as recommended for Tizen development at
https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide

See https://editorconfig.org/ for details.

Change-Id: I8ba584ba3e0d7967c867902c09b702e2e7a271f1
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
7 years agoClean Up : Use %license macros 28/126128/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified tizen_4.0 tizen_5.0 accepted/tizen/4.0/unified/20170816.011913 accepted/tizen/4.0/unified/20170829.020426 accepted/tizen/5.0/unified/20181102.021630 accepted/tizen/unified/20170420.155945 submit/tizen/20170420.110508 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004 submit/tizen_5.0/20181101.000004 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release
Kunhoon Baik [Thu, 20 Apr 2017 07:37:51 +0000 (16:37 +0900)]
Clean Up : Use %license macros

Change-Id: I65158b2638c3bacd1c890d352d170dab7c91dab4

7 years agoSupport runtime watchdog 39/86439/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.141308 accepted/tizen/3.0.m2/tv/20170104.141956 accepted/tizen/3.0.m2/wearable/20170104.142253 accepted/tizen/3.0/common/20161114.110030 accepted/tizen/3.0/ivi/20161011.053456 accepted/tizen/3.0/mobile/20161015.032216 accepted/tizen/3.0/tv/20161016.003332 accepted/tizen/3.0/wearable/20161015.080358 accepted/tizen/common/20160902.061950 accepted/tizen/ivi/20160905.065451 accepted/tizen/mobile/20160905.065401 accepted/tizen/tv/20160905.065418 accepted/tizen/unified/20170309.033857 accepted/tizen/wearable/20160905.065435 submit/tizen/20160902.013139 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010 submit/tizen_3.0_mobile/20161015.000000 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000000 submit/tizen_unified/20170308.100409
Kunhoon Baik [Thu, 1 Sep 2016 07:15:21 +0000 (16:15 +0900)]
Support runtime watchdog

Previously, systemd did not support to change runtime watchdog.
However, recent systemd supports such functionality - https://github.com/systemd/systemd/commit/2787d83c2.
Thus, argos watchdog supports the feature.

Thanks to Mr.Sung(JungHak) (Original Idea from him)

Change-Id: I8ef1741c16867e46329c529365726821dd5d44d1

7 years ago[systemd backend] modification of aw_register behavior 82/82982/1
Kunhoon Baik [Mon, 8 Aug 2016 11:16:27 +0000 (20:16 +0900)]
[systemd backend] modification of aw_register behavior

Prev : return NOT support
Now  : return after checking statically-registered

Change-Id: I2116d7413d2ab662f42f079aad703e7d4976ae99

7 years agotest: remove codes for testing 65/80965/1 accepted/tizen/common/20160721.180511 accepted/tizen/ivi/20160721.093016 accepted/tizen/mobile/20160721.092440 accepted/tizen/tv/20160721.091714 accepted/tizen/wearable/20160721.092021 submit/tizen/20160721.044359
taeyoung [Thu, 21 Jul 2016 06:26:10 +0000 (15:26 +0900)]
test: remove codes for testing

- The test codes are unnecessary, and thus
  they are removed

Change-Id: I67c1d916a7f1129e1d1ae721cff959d081979388
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoUse pre-defined path for compatibility with aarch64 25/59725/1 accepted/tizen/common/20160609.091914 accepted/tizen/ivi/20160218.084118 accepted/tizen/mobile/20160218.055842 accepted/tizen/tv/20160218.055903 accepted/tizen/wearable/20160218.055933 submit/tizen/20160218.024345 submit/tizen_common/20160609.071953
Kichan Kwon [Thu, 18 Feb 2016 02:36:40 +0000 (11:36 +0900)]
Use pre-defined path for compatibility with aarch64

Change-Id: I6032416841488870defd5b3d67bc47792bf73cfc
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoUpload initial source submit/tizen/20160217.093648
Kichan Kwon [Wed, 17 Feb 2016 04:13:27 +0000 (13:13 +0900)]
Upload initial source

Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoInitial empty repository master
Jinkun Jang [Wed, 17 Feb 2016 03:22:16 +0000 (19:22 -0800)]
Initial empty repository