platform/core/api/resource.git
18 months agoModify headers to meet public API conditions 71/283171/1 tizen_6.5
Unsung Lee [Tue, 18 Oct 2022 07:43:35 +0000 (16:43 +0900)]
Modify headers to meet public API conditions

modify the privilege description for cpu-boosting APIs.

Change-Id: Ic4484b9ba61a26809600d08c4ebb83898669f6d5
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 5b87d61a38777cf2070e1a53fc0dda88a09535bd)

20 months agoFix bugs reported by Coverity and SVACE 78/280278/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20220902.125442 submit/tizen_6.5/20220901.095941
Unsung Lee [Thu, 25 Aug 2022 08:33:05 +0000 (17:33 +0900)]
Fix bugs reported by Coverity and SVACE

Change-Id: I716175c16073e627a52a62176b2341c2b612953e
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 936b3dfceec70f2a700c587d54aa2ac793a11991)

20 months agoAdd a service to test inheritance cases 76/280276/1
Unsung Lee [Tue, 23 Aug 2022 04:41:36 +0000 (13:41 +0900)]
Add a service to test inheritance cases

Change-Id: I918af83806f04e86c6abe71f3e179996c131b5d1
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 467f2cdf3075c0f495a55675ed10326b6d0add4d)

20 months agoplugin: add (un)register and get/set inheritance 88/279588/1
Unsung Lee [Wed, 10 Aug 2022 09:06:52 +0000 (18:06 +0900)]
plugin: add (un)register and get/set inheritance

Change-Id: Ib1ca8bbc8eb775b0e5919c05420610dd340983b2
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
21 months agoMove dlopen and dlsym to the constructor 91/279291/1 accepted/tizen/6.5/unified/20220805.131714 submit/tizen_6.5/20220805.072016
Unsung Lee [Fri, 5 Aug 2022 06:57:41 +0000 (15:57 +0900)]
Move dlopen and dlsym to the constructor

Change-Id: I33b8185e5449bd224051e009a9130097bd3662bf
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 96f60bd7bb249460e6faddec87ab5dfe469c63b1)

21 months agodoc: add doc/resource_doc.h to define System > Resource category 09/278809/1
Hyotaek Shim [Tue, 26 Jul 2022 07:11:38 +0000 (16:11 +0900)]
doc: add doc/resource_doc.h to define System > Resource category

Change-Id: I9ebcb764e98e223a149210d4152ac1d2a3d8701d
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit fae8fb44daca567691f56b1b6d5a90b343c2d11e)

21 months agoRename flag -> flags 01/278601/1
Unsung Lee [Fri, 22 Jul 2022 07:56:12 +0000 (16:56 +0900)]
Rename flag -> flags

Change-Id: Idab6d543d82099a0d55629db2878af54da89d458
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 43a70b16f22052b2ba791e7d618d5e956e2d8b30)

21 months agoModify backup/restore of original policy in resource_set_cpu_boosting API 95/278595/1
Hyotaek Shim [Fri, 22 Jul 2022 07:20:03 +0000 (16:20 +0900)]
Modify backup/restore of original policy in resource_set_cpu_boosting API

Change-Id: Iaef502fc7cc67ca3d31bfbd851da22d535d7b8a9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 6d19e8283985b9b55c27e9a80c6cd5c990b2d215)

21 months agoSupplement cpu boosting test 90/278590/1
Unsung Lee [Fri, 22 Jul 2022 06:07:19 +0000 (15:07 +0900)]
Supplement cpu boosting test

Change-Id: I9e1b0fa30247e3ca341c7e99c7512253645de8b5
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 70a6a819a233b6f2954d871ec71e461bf1e11841)

21 months agoAdd flag argument on the resource_set_cpu_boosting 60/278560/1 submit/tizen_6.5/20220722.040839
Unsung Lee [Fri, 22 Jul 2022 02:26:34 +0000 (11:26 +0900)]
Add flag argument on the resource_set_cpu_boosting

Change-Id: Id0b161df3ad8910cbbf8734dc1d17a0347de35be
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit d4f61361eb2d651f8470181adc2ea0b35e3c5a09)

21 months agoDelete non-blocking option (SOCK_NONBLOCK) 83/277983/1
Unsung Lee [Fri, 15 Jul 2022 08:06:43 +0000 (17:06 +0900)]
Delete non-blocking option (SOCK_NONBLOCK)

recv() will be delayed until timeout

Change-Id: Ia1fe772091e648abff9c34f2466ec7e370457713
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit aa6d95763e983347acfae0508c2558a1f57f90e5)

21 months agoFix bugs reported by Coverity and SVACE 43/277943/1
Unsung Lee [Fri, 15 Jul 2022 06:37:39 +0000 (15:37 +0900)]
Fix bugs reported by Coverity and SVACE

Change-Id: I27303d7286a036a15171b023e083cfda4b043eb0
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 93605f8281f061022f241958d1ff6558a86b1e8a)

21 months agoSupport non-blocking (with timeout) socket 42/277942/1
Unsung Lee [Fri, 15 Jul 2022 05:16:43 +0000 (14:16 +0900)]
Support non-blocking (with timeout) socket

Change-Id: I6c19398d13970aabc4aa62a383aa36b473c2f852
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 5b0062969fa22f36ac0e1f0b884a88e4f65f8b96)

21 months agoSupplement cpu-boosting test code 79/277779/1
Unsung Lee [Tue, 12 Jul 2022 10:21:48 +0000 (19:21 +0900)]
Supplement cpu-boosting test code

Change-Id: Id905be00f3a9fa2f9dd6d49d2fd9f82d1e0c09c9
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit ceeb725b9c47b8b1a7f546f140be2b885ce63452)

21 months agoFix a SVACE reported bug 37/277637/1 accepted/tizen/6.5/unified/20220712.132841 submit/tizen_6.5/20220712.034605
Unsung Lee [Mon, 11 Jul 2022 08:40:29 +0000 (17:40 +0900)]
Fix a SVACE reported bug

Change-Id: I2056c0a36ba89214c13b6b864b6ed496cfe028d6
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
21 months agoplugin: add clear and get funcs 32/277632/1
Unsung Lee [Mon, 11 Jul 2022 07:48:44 +0000 (16:48 +0900)]
plugin: add clear and get funcs

Change-Id: I0d6ef27e209f4dbb13fdad5153db2b962217a938
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
21 months agoRearrange resource_error_e enum and add RESOURCE_ERROR_OPERATION_FAILED 15/277615/1
Hyotaek Shim [Mon, 11 Jul 2022 05:48:40 +0000 (14:48 +0900)]
Rearrange resource_error_e enum and add RESOURCE_ERROR_OPERATION_FAILED

Change-Id: If2e8bc8e1bff0c212cd0e1745ba7c9c3ca229b84
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
21 months agoRefine the explanation of cpu-boosting set/clear APIs 00/277600/1
Hyotaek Shim [Mon, 11 Jul 2022 03:53:25 +0000 (12:53 +0900)]
Refine the explanation of cpu-boosting set/clear APIs

Change-Id: I1132400b79b7ff008d0cf3ebaa54ae518417df11
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
22 months agoModify tid and pid from int to pid_t 66/277266/1 accepted/tizen/6.5/unified/20220704.213120 submit/tizen_6.5/20220704.075646
Unsung Lee [Mon, 4 Jul 2022 05:45:19 +0000 (14:45 +0900)]
Modify tid and pid from int to pid_t

Change-Id: I6bf4914fb1dc7f0c75c73e0292264b48625249bf
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 56d356846f6ddea53d60107268e65ed899516528)

22 months agoFix the specification of resource_get_cpu_boosting_level API 43/277243/1
Hyotaek Shim [Mon, 4 Jul 2022 04:59:23 +0000 (13:59 +0900)]
Fix the specification of resource_get_cpu_boosting_level API

Change-Id: I69ca14147de264c6b86cfb984a1aaf8da8289fd8
(cherry picked from commit 7178601657ad7cfc88da796ed6b8562d859488bd)

22 months agoplugin: implement resource_set_cpu_boosting 15/277015/1 accepted/tizen/6.5/unified/20220630.211830 submit/tizen_6.5/20220630.054955
Unsung Lee [Tue, 28 Jun 2022 11:20:03 +0000 (20:20 +0900)]
plugin: implement resource_set_cpu_boosting

Change-Id: Ibe5877898afa269653318a1fdfd28a8081753277
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit c235ebf186f540eaf79188fc4edc13b3d6ca4e63)

22 months agoAdd API privilege declaration and fix typo in API spec 98/276998/1
Hyotaek Shim [Wed, 29 Jun 2022 02:40:05 +0000 (11:40 +0900)]
Add API privilege declaration and fix typo in API spec

Change-Id: Id5c6330ec069dfcc55407c44a5d5a122d1dfc818
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 2e4d9374164a7eff0a5f345906d1f41ea4041288)

22 months agoImprove explanation in cpu boosting API specification 63/276963/1 accepted/tizen/6.5/unified/20220629.152512 submit/tizen_6.5/20220628.084306
Hyotaek Shim [Tue, 28 Jun 2022 10:31:56 +0000 (19:31 +0900)]
Improve explanation in cpu boosting API specification

Also delete unnecessary pid field in cpu_boosting_level_info_t

Change-Id: I0bcddf62844e86869ab176abbbc1780d315f2342
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit fb167df48a0c45e01edb06086fafc2177bcb1bc8)

22 months agoRefine the description of cpu boosting APIs 62/276962/1
Hyotaek Shim [Mon, 13 Jun 2022 03:33:19 +0000 (12:33 +0900)]
Refine the description of cpu boosting APIs

Change-Id: I184055440daf2373fcc162c3bb7636f9af499d59
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit e673298debec4bc4ab061adfebb3c17f73ba0630)

22 months agoChange char * -> const char * in API arguments 61/276961/1
Hyotaek Shim [Mon, 27 Jun 2022 02:31:45 +0000 (11:31 +0900)]
Change char * -> const char * in API arguments

Change-Id: Ieeef1dee1aff587f4f744b9ccebb57b9d8b8c130
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit ed5253d8af821a124600119d7afe3006259275da)

22 months agoDelete dlclose() and Move dlopen() 29/276629/1
Unsung Lee [Wed, 22 Jun 2022 04:37:47 +0000 (13:37 +0900)]
Delete dlclose() and Move dlopen()

do not call dlopen()/dlclose() on constructor/destructor respectively.
Instead, delete dlcose() and move dlopen() from constructor to APIs.

Change-Id: Id9f75d2dc2749321e96d6504c45ec06973995190
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 3ccd6f83d143ef0934117123342d793b9a98be8e)

22 months agoModify value of CPU_BOOSTING_LEVEL_* 18/276518/1
Unsung Lee [Mon, 20 Jun 2022 01:51:27 +0000 (10:51 +0900)]
Modify value of CPU_BOOSTING_LEVEL_*

Change-Id: Ieb3f61f3e77ec8bca274ce2d7f4eeac9c26d8bbd
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 6045ab3ca222ebb524ad8db4edb70e1afd518707)

22 months agoDelete some package dependencies 16/276516/1
Unsung Lee [Mon, 20 Jun 2022 01:09:16 +0000 (10:09 +0900)]
Delete some package dependencies

Change-Id: Iafa2dd8caea32b06e21f28748f4bb5e29972c6ed
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit e1b37d1e26ba99627b42853e014edada5c4603c0)

23 months agoMove header files to the destination 52/275752/1
Unsung Lee [Tue, 31 May 2022 08:50:52 +0000 (17:50 +0900)]
Move header files to the destination

Change-Id: I328c8adb166cd8c8c412263b74f1debca82a8785
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 218419aeebc7d33c3affc6c67ecc424c0cf38d93)

23 months agoImplement CPU boosting plugin 79/275579/1
Unsung Lee [Thu, 26 May 2022 08:34:54 +0000 (17:34 +0900)]
Implement CPU boosting plugin

Change-Id: I0234087e4caa9f7dccf9ab7c9f7f3013fb9e1243
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
(cherry picked from commit 61715d3e8eb12ce83958a7c22b0d35c7c20d6323)

2 years agoChange API name for better consistency and specify details 80/274080/1
Hyotaek Shim [Thu, 21 Apr 2022 05:16:22 +0000 (14:16 +0900)]
Change API name for better consistency and specify details

Add resource_unregister_cpu_inheritance_destination() API

Change-Id: I1442d2fc1da905beb65b96a15048204f5e823d0b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 6d415e2c87ca59c3c2416653b3ffffddfe367b9b)

2 years agoAdd resource_get_cpu_sched_boosting_level() API 85/273985/1 accepted/tizen/6.5/unified/20220420.135524 submit/tizen_6.5/20220420.055645
Hyotaek Shim [Tue, 19 Apr 2022 10:56:50 +0000 (19:56 +0900)]
Add resource_get_cpu_sched_boosting_level() API

Change-Id: I784131f24d514542d5037acc9fb9842ed9f00099
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit c37c01ec99878fa42a21d2eb66620d168f6ad82a)

2 years agoAdd function declaration for CPU boosting APIs 40/273940/4
Hyotaek Shim [Mon, 18 Apr 2022 12:04:12 +0000 (21:04 +0900)]
Add function declaration for CPU boosting APIs

Change-Id: I9ac527fd70b41387e1f4e2e8d512774801a7dbe6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoInitialization 32/273632/2
Hyotaek Shim [Mon, 11 Apr 2022 05:44:11 +0000 (14:44 +0900)]
Initialization

Change-Id: I1d3207cf4e7c0a98bf2ff9823fae6541d5150712
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoInitial empty repository master
Tizen Infrastructure [Fri, 8 Apr 2022 08:33:57 +0000 (08:33 +0000)]
Initial empty repository