summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-04-04Wakeup watchdog thread when watchdog option is changed (Especially, in ↵tizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.0_hotfix/20201103.114804submit/tizen_6.0_hotfix/20201102.192504submit/tizen_6.0/20201029.205104submit/tizen_5.5_wearable_hotfix/20201026.184304submit/tizen_5.5_mobile_hotfix/20201026.185104submit/tizen_5.5/20191031.000004submit/tizen/20190405.134858accepted/tizen/unified/20190410.002033accepted/tizen/6.0/unified/hotfix/20201103.004025accepted/tizen/6.0/unified/20201030.115344accepted/tizen/5.5/unified/wearable/hotfix/20201027.113349accepted/tizen/5.5/unified/mobile/hotfix/20201027.090728accepted/tizen/5.5/unified/20191031.023116tizen_6.0_hotfixtizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_6.0_unified_hotfixaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedKunhoon Baik2-3/+5
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
2018-10-04argos-watchdog: support multiple types of watchdogsubmit/tizen/20181004.144412ByungSoo Kim7-4/+339
- 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>
2018-09-20argos-systemd: stop watchdog while suspending on idlesubmit/tizen/20181004.081606ByungSoo Kim3-1/+36
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>
2018-09-19common: add printing dlogByungSoo Kim4-2/+19
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>
2018-09-14Add .editorconfig fileŁukasz Stelmach1-0/+19
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>
2017-04-20Clean Up : Use %license macrostizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_5.0/20181101.000004submit/tizen_4.0/20170828.110004submit/tizen_4.0/20170828.100004submit/tizen_4.0/20170811.094300submit/tizen/20170420.110508accepted/tizen/unified/20170420.155945accepted/tizen/5.0/unified/20181102.021630accepted/tizen/4.0/unified/20170829.020426accepted/tizen/4.0/unified/20170816.011913tizen_5.0tizen_4.0accepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedKunhoon Baik1-4/+2
Change-Id: I65158b2638c3bacd1c890d352d170dab7c91dab4
2016-09-01Support runtime watchdogsubmit/tizen_unified/20170308.100409submit/tizen_3.0_wearable/20161015.000000submit/tizen_3.0_tv/20161015.000000submit/tizen_3.0_mobile/20161015.000000submit/tizen_3.0_ivi/20161010.000010submit/tizen_3.0_ivi/20161010.000000submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093751submit/tizen/20160902.013139accepted/tizen/wearable/20160905.065435accepted/tizen/unified/20170309.033857accepted/tizen/tv/20160905.065418accepted/tizen/mobile/20160905.065401accepted/tizen/ivi/20160905.065451accepted/tizen/common/20160902.061950accepted/tizen/3.0/wearable/20161015.080358accepted/tizen/3.0/tv/20161016.003332accepted/tizen/3.0/mobile/20161015.032216accepted/tizen/3.0/ivi/20161011.053456accepted/tizen/3.0/common/20161114.110030accepted/tizen/3.0.m2/wearable/20170104.142253accepted/tizen/3.0.m2/tv/20170104.141956accepted/tizen/3.0.m2/mobile/20170104.141308tizen_3.0_tvtizen_3.0.m2tizen_3.0accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobileKunhoon Baik2-11/+49
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
2016-08-08[systemd backend] modification of aw_register behaviorKunhoon Baik1-4/+8
Prev : return NOT support Now : return after checking statically-registered Change-Id: I2116d7413d2ab662f42f079aad703e7d4976ae99
2016-07-21test: remove codes for testingsubmit/tizen/20160721.044359accepted/tizen/wearable/20160721.092021accepted/tizen/tv/20160721.091714accepted/tizen/mobile/20160721.092440accepted/tizen/ivi/20160721.093016accepted/tizen/common/20160721.180511taeyoung4-78/+1
- The test codes are unnecessary, and thus they are removed Change-Id: I67c1d916a7f1129e1d1ae721cff959d081979388 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-02-18Use pre-defined path for compatibility with aarch64submit/tizen_common/20160609.071953submit/tizen/20160218.024345accepted/tizen/wearable/20160218.055933accepted/tizen/tv/20160218.055903accepted/tizen/mobile/20160218.055842accepted/tizen/ivi/20160218.084118accepted/tizen/common/20160609.091914Kichan Kwon2-4/+4
Change-Id: I6032416841488870defd5b3d67bc47792bf73cfc Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
2016-02-17Upload initial sourcesubmit/tizen/20160217.093648Kichan Kwon13-0/+642
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
2016-02-16Initial empty repositoryHEADmasterJinkun Jang0-0/+0