• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef RESSCHED_EXECUTOR_INTERFACES_INNERKITS_RESSCHED_EXECUTOR_CLIENT_INCLUDE_RES_EXE_TYPE_H
17 #define RESSCHED_EXECUTOR_INTERFACES_INNERKITS_RESSCHED_EXECUTOR_CLIENT_INCLUDE_RES_EXE_TYPE_H
18 
19 #include <cstdint>
20 
21 namespace OHOS {
22 namespace ResourceSchedule {
23 namespace ResExeType {
24 enum : uint32_t {
25     // first resType, please add resType after
26     RES_TYPE_FIRST = 0,
27     // common resType for plugin
28     RES_TYPE_COMMON_SYNC = RES_TYPE_FIRST,
29     // thermal aware event sync
30     RES_TYPE_THERMAL_AWARE_SYNC_EVENT,
31     // socperf wirte node sync
32     EWS_TYPE_SOCPERF_EXECUTOR_SYNC_EVENT,
33     // cgroup read node sync
34     RES_TYPE_CGROUP_SYNC_EVENT,
35     // cgroup read proc task sync
36     RES_TYPE_CGROUP_PROC_TASK_SYNC_EVENT,
37     // cgroup set thread sched policy sync
38     RES_TYPE_SET_THREAD_SCHED_POLICY_SYNC_EVENT,
39     // cgroup set thread group sched policy sync
40     RES_TYPE_SET_THREAD_GROUP_SCHED_POLICY_SYNC_EVENT,
41     // init executor plugin manager
42     RES_TYPE_EXECUTOR_PLUGIN_INIT,
43     // last sync resType, please add sync resType before
44     RES_TYPE_SYNC_END,
45 
46     // first async resType, please add async resType after
47     RES_TYPE_ASYNC_FIRST = RES_TYPE_SYNC_END,
48     // common resType for plugin
49     RES_TYPE_COMMON_ASYNC = RES_TYPE_ASYNC_FIRST,
50     // thermal aware event async
51     RES_TYPE_THERMAL_AWARE_ASYNC_EVENT,
52     // socperf wirte node async
53     EWS_TYPE_SOCPERF_EXECUTOR_ASYNC_EVENT,
54     // break socket async
55     RES_TYPE_SOCK_EXECUTOR_ASYNC_EVENT,
56     // suspend manager sa changed
57     RES_TYPE_EXT_SUSPEND_MANAGER_SA_CHANGED,
58     // last resType, please add resType before
59     RES_TYPE_LAST = 1000,
60     // resType for debug ipc
61     RES_TYPE_DEBUG = RES_TYPE_LAST,
62 };
63 } // namespace ResExeType
64 } // namespace ResourceSchedule
65 } // namespace OHOS
66 
67 #endif // RESSCHED_EXECUTOR_INTERFACES_INNERKITS_RESSCHED_EXECUTOR_CLIENT_INCLUDE_RES_EXE_TYPE_H
68