[TRE-2900] Add capi-system-resource-monitor and libpass-resource-monitor to iot platf... 31/273431/4 accepted/tizen/unified/20220411.214553 submit/tizen/20220411.061024
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 5 Apr 2022 08:54:44 +0000 (17:54 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 7 Apr 2022 01:23:11 +0000 (10:23 +0900)
Add capi-system-resource-monitor and resource-monitor feature
to iot platform image and have the relatinoship as following:

[Relationship between capi/features]
- sub2-domain_API-System-Resource_Monitor
- Requires: capi-system-resource-monitor
- Requires: sub1-domain_Feature-Resource_Monitor
- Requires: libpass-resource-monitor
- Requires: %{name}-sub1-domain_Feature-Power_manager

Change-Id: Ibd409c6b139042e37fdef0945d0b0aa25fac927d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
mapping-bb-rs.xml
packaging/building-blocks.spec
packaging/domain-apis-system.inc
packaging/domain-features-resource_monitor.inc [new file with mode: 0644]
packaging/domain-features.inc
packaging/platform-preset-iot.inc

index e9b2fa739c1d4b5742ec5d6679e0ef47f0ae0a3a..291ec49e9a798a4b8665fc6d4e69da189fd8a6e5 100644 (file)
        <buildingblock name="building-blocks-sub2-domain_API-System-Diagnostics" abb_id="144">
                <rs_info>diagnostics-rs.xml</rs_info>
        </buildingblock>
+       <buildingblock name="building-blocks-sub2-domain_API-System-Resource_Monitor" abb_id="145">
+               <rs_info>capi-system-resource-monitor-rs.xml</rs_info>
+       </buildingblock>
 </MappingInfo>
index 9632b2d9356878fd906333f3e82b3b0402a5db61..7f873767d340f99c2670047a66150c8dd45ffbb0 100644 (file)
@@ -50,6 +50,7 @@ Source1310: domain-features-resource_manager.inc
 Source1311: domain-features-diagnostics.inc
 Source1312: domain-features-power_manager.inc
 Source1313: domain-features-mode_supervisor.inc
+Source1314: domain-features-resource_monitor.inc
 
 %if %{dotnet_feature} == "on"
 Source1400:    domain-csapis.inc
@@ -375,6 +376,7 @@ python ./rule_checker.py
 %{include_if_mainbuild %{SOURCE1311}}
 %{include_if_mainbuild %{SOURCE1312}}
 %{include_if_mainbuild %{SOURCE1313}}
+%{include_if_mainbuild %{SOURCE1314}}
 
 %if %{dotnet_feature} == "on"
 %{include_if_mainbuild %{SOURCE1400}}
index a0a2001ea2fbd573af3d99b20d90bf31bb6f61e1..c7ab9f48facb8f93723e1d14826f5d3b5d5b201a 100644 (file)
@@ -21,6 +21,7 @@ Suggests: %{name}-sub2-domain_API-System-T_Trace
 Suggests: %{name}-sub2-domain_API-System-USB_Host
 Suggests: %{name}-sub2-domain_API-System-dlog
 Suggests: %{name}-sub2-domain_API-System-Update_Control
+Suggests: %{name}-sub2-domain_API-System-Resource_Monitor
 %description sub1-domain_API-System
 Tizen block (set of packages) for Group of domain API-System
 %files sub1-domain_API-System
@@ -208,3 +209,11 @@ Tizen block (set of packages) for Group of sub domain Update_Control
 %files sub2-domain_API-System-Update_Control
 %posttrans sub2-domain_API-System-Update_Control
 %tizen_feature tizen.org/feature/device_update true
+
+%package sub2-domain_API-System-Resource_Monitor
+Summary: Resource Monitor
+Requires: capi-system-resource-monitor
+Requires: %{name}-sub1-domain_Feature-Resource_Monitor
+%description sub2-domain_API-System-Resource_Monitor
+Tizen block (set of packages) for Group of sub domain Resource Monitor
+%files sub2-domain_API-System-Resource_Monitor
diff --git a/packaging/domain-features-resource_monitor.inc b/packaging/domain-features-resource_monitor.inc
new file mode 100644 (file)
index 0000000..f4523ff
--- /dev/null
@@ -0,0 +1,27 @@
+# Maintainer: Tizen Kernel
+# You need ACK (+1) from the maintainer to be reviewed by building-blocks maintainers.
+
+############################
+## Tizen Resource Monitor ##
+############################
+%package sub1-domain_Feature-Resource_Monitor
+Summary: Tizen Resource Monitor
+Requires: libpass-resource-monitor
+Requires: %{name}-sub1-domain_Feature-Power_manager
+
+%description sub1-domain_Feature-Resource_Monitor
+Tizen block (set of packages) for supporting resource monitoring of Tizen.<br>
+Resource Monitor features provides the unified resource monitoring service<br>
+to monitor the physical and logical resources such as CPU/GPU/Memory<br>
+Bus/Memory/Display/Battery/PROCESS/PROCESS_GROUP and so on.<br>
+<br>
+Each resource<br> has the resource attributes like CPU_ATTR_CUR_FREQ<br>
+(current cpu frequency), GPU_ATTR_MIN_FREQ (minimum gpu frequency),<br>
+DISPLAY_ATTR_FPS (display frame per second) and so on.<br>
+The client of resource monitor can make the any monitoring<br>
+set according to their own requirement. For exmaple, the client might <br>
+want to monitor the CPU/GPU/Display and Process (like enlightenment).<br>
+Resource Monitor collects the required monitoring dataset and then<br>
+provide them to client.<br>
+
+%files sub1-domain_Feature-Resource_Monitor
index 54947cfb490d87a92706d7487bc8444f9730b32e..a57956069edf4f391b770849b6162a4bfd7aa5c0 100644 (file)
@@ -20,6 +20,7 @@ Suggests:     %{name}-sub1-domain_Feature-Resource_manager_Headless
 Suggests:      %{name}-sub1-domain_Feature-Power_manager
 Suggests:      %{name}-sub1-domain_Feature-Mode_Supervisor
 Suggests:      %{name}-sub1-domain_Feature-Esplusplayer
+Suggests:      %{name}-sub1-domain_Feature-Resource_Monitor
 
 %description root-domain_Feature
 __EXPAND__: domains
index cb78ab8eb580a04c6fb13e7a0f255ff9228be747..7715780b0e32da2faf1a8bb1af1f8c246f76e723 100644 (file)
@@ -215,6 +215,8 @@ Requires:   %{name}-sub2-domain_API-MachineLearning-NNTrainer
 Requires:      %{name}-sub1-domain_Feature-Resource_manager
 #From TRE-2672
 Requires:      rive-tizen
+#From TRE-2900
+Requires:       %{name}-sub2-domain_API-System-Resource_Monitor
 
 %if %{dotnet_feature} == "on"
 ##### TizenFX for Headed #####
@@ -354,6 +356,8 @@ Requires:   %{name}-sub2-domain_API-UI-EFL_MainLoop
 Requires:      %{name}-sub2-domain_API-UIX-TTS
 Requires:      %{name}-sub2-domain_API-UIX-Voice_control
 Requires:      %{name}-sub2-domain_API-Web-json_Glib
+#From TRE-2900
+Requires:       %{name}-sub2-domain_API-System-Resource_Monitor
 
 %description root-Preset_iot_headless
 The packages  of Tizen IoT Headless Common.