Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/ohos5.0/foundation/resourceschedule/ffrt/src/dfx/watchdog/
H A Dwatchdog_util.cpp38 bool IsValidTimeout(uint64_t gid, uint64_t timeout_us) in IsValidTimeout() argument
52 void AddTaskToWatchdog(uint64_t gid) in AddTaskToWatchdog() argument
58 void RemoveTaskFromWatchdog(uint64_t gid) in RemoveTaskFromWatchdog() argument
61 taskStatusMap.erase(gid); in RemoveTaskFromWatchdog()
73 we->cb = ([gid, timeout_ms](WaitEntry* we) { in SendTimeoutWatchdog()
75 if (taskStatusMap.count(gid) > 0) { in SendTimeoutWatchdog()
76 RunTimeOutCallback(gid, timeout_ms); in SendTimeoutWatchdog()
95 void RunTimeOutCallback(uint64_t gid, uint64_t timeout) in RunTimeOutCallback() argument
104 func(gid, msg.c_str(), msg.size()); in RunTimeOutCallback()
106 int sendCount = taskStatusMap[gid]; in RunTimeOutCallback()
[all …]
H A Dwatchdog_util.h21 bool IsValidTimeout(uint64_t gid, uint64_t timeout_us);
22 void AddTaskToWatchdog(uint64_t gid);
23 void RemoveTaskFromWatchdog(uint64_t gid);
24 bool SendTimeoutWatchdog(uint64_t gid, uint64_t timeout, uint64_t delay);
25 void RunTimeOutCallback(uint64_t gid, uint64_t timeout);
/ohos5.0/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A Dffrt_trace_recover.py70 label, pid, gid, pid, cpu_id, timestamp, label, pid, gid, prio, tname, tid, prio)
99 def replace_sched_wake_log(fake_log, label, pid, gid): argument
109 def replace_sched_block_log(fake_log, pid, gid): argument
276 task_running = gid
374 gid = int(log.split('|')[-1])
378 if gid not in task_labels[pid].keys():
379 task_labels[pid][gid] = {
392 task_labels[pid][gid]["state"] = "block"
403 gid = int(log.split('|')[-1])
417 … logs[task_labels[pid][gid]["prev_wake_lineno"]] = logs[task_labels[pid][gid]["prev_wake_lineno"]][
[all …]
H A Dffrt_trace_process.py239 task_records[gid]["status"] = next_status
292 gid = task_marker[1]
298 task_records[gid] = {
299 "gid": gid,
328 if gid in task_records.keys():
340 if gid in task_records.keys():
349 …task_records[gid]["cowait_duration"] += task_records[gid]["costart"][-1] - task_records[gid]["cowa…
360 if gid in task_records.keys():
363 …task_records[gid]["exec_duration"] += task_records[gid]["cowait"][-1] - task_records[gid]["costart…
373 if gid in task_records.keys():
[all …]
/ohos5.0/foundation/resourceschedule/ffrt/src/dfx/trace/
H A Dffrt_trace.h223 #define FFRT_TASK_BEGIN(tag, gid) \ argument
228 #define FFRT_BLOCK_TRACER(gid, tag) \ argument
234 #define FFRT_WAKE_TRACER(gid) \ argument
261 #define FFRT_TASK_BEGIN(tag, gid) argument
262 #define FFRT_BLOCK_TRACER(gid, tag) argument
263 #define FFRT_WAKE_TRACER(gid) argument
271 #define FFRT_SUBMIT_MARKER(tag, gid) \ argument
275 #define FFRT_READY_MARKER(gid) \ argument
279 #define FFRT_BLOCK_MARKER(gid) \ argument
283 #define FFRT_TASKDONE_MARKER(gid) \ argument
[all …]
/ohos5.0/build/ohos/packages/
H A Dprocess_field_validate.py43 self.gid = []
52 self.gid = []
81 def append_gid(self, gid): argument
86 if CfgItem._is_need_verified_gid(gid) and gid not in self.gid:
87 self.gid.append(gid)
130 self.gid = []
140 self.gid = []
157 self.gid = []
177 return not ("root" in gid and "root" not in self.gid)
185 for gid in i[1].gid:
[all …]
/ohos5.0/foundation/resourceschedule/ffrt/src/tm/
H A Dqueue_task.cpp31 label = handler->GetName() + "_" + attr->name_ + "_" + std::to_string(gid); in QueueTask()
33 label = handler->GetName() + "_" + std::to_string(gid); in QueueTask()
48 … FFRT_LOGW("task [gid=%llu] not suport delay and timeout at the same time, timeout ignored", gid); in QueueTask()
54 …FFRT_LOGD("ctor task [gid=%llu], delay=%lluus, type=%lu, prio=%d, timeout=%luus", gid, delay_, typ… in QueueTask()
60 FFRT_LOGD("dtor task [gid=%llu]", gid); in ~QueueTask()
74 FFRT_SERIAL_QUEUE_TASK_FINISH_MARKER(gid); in Notify()
84 FFRT_LOGD("Execute stask[%lu], name[%s]", gid, label.c_str()); in Execute()
86 FFRT_LOGE("task [gid=%llu] is complete, no need to execute again", gid); in Execute()
91 FFRT_TASKDONE_MARKER(gid); in Execute()
H A Dscpu_task.cpp48 … FFRT_LOGD("Undependency completed, enter ready queue, task[%lu], name[%s]", gid, label.c_str()); in DecDepRef()
49 FFRT_WAKE_TRACER(this->gid); in DecDepRef()
74 FFRT_LOGD("free CPUEUTask:%s gid=%lu", parent->label.c_str(), parent->gid); in DecChildRef()
90 FFRT_WAKE_TRACER(parent->gid); in DecChildRef()
115 FFRT_WAKE_TRACER(this->gid); in DecWaitDataRef()
125 FFRT_LOGD("free SCPUEUTask:%s gid=%lu", label.c_str(), gid); in RecycleTask()
/ohos5.0/base/startup/init/test/unittest/ueventd/
H A Dueventd_config_unittest.cpp47 gid_t gid = 0; variable
49 GetDeviceNodePermissions("/dev/test", &uid, &gid, &mode);
51 EXPECT_EQ(gid, 1000);
54 gid = 999;
58 GetDeviceNodePermissions("/dev/test1", &uid, &gid, &mode);
60 EXPECT_EQ(gid, 999);
64 GetDeviceNodePermissions("/dev/test2", &uid, &gid, &mode);
66 EXPECT_EQ(gid, 999);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/
H A Dfile_utils_test.cpp119 gid_t gid = 01; variable
120 int32_t ret = ChOwn(PATH_CHOWN, uid, gid);
127 EXPECT_TRUE(st.st_gid == gid);
130 gid = 00;
131 ret = ChOwn(PATH_CHOWN, uid, gid);
137 EXPECT_TRUE(st.st_gid == gid);
199 gid_t gid = 01; variable
225 gid_t gid = 01; variable
234 EXPECT_TRUE(st.st_gid == gid);
251 gid_t gid = 01; variable
[all …]
/ohos5.0/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
H A Dprint_utils_test.cpp68 std::string gid = "com.sample.ext"; variable
70 std::string result = PrintUtils::GetExtensionId(gid);
82 std::string gid = "com.sample.ext:1234"; variable
84 std::string result = PrintUtils::GetExtensionId(gid);
111 std::string gid = "com.sample.ext"; variable
126 std::string gid = "com.sample.ext:1234"; variable
141 std::string gid = "com.sample.ext:1234"; variable
156 std::string gid = "com.sample.ext"; variable
171 std::string gid = "com.sample.ext"; variable
185 std::string gid = "com.sample.ext:1"; variable
[all …]
/ohos5.0/base/startup/init/services/param/adapter/
H A Dparam_dac.c49 static void GetGroupIdByName(gid_t *gid, const char *name) in GetGroupIdByName() argument
51 *gid = -1; in GetGroupIdByName()
54 *gid = data->gr_gid; in GetGroupIdByName()
59 *gid = data->gr_gid; in GetGroupIdByName()
94 GetGroupIdByName(&dacData->gid, name); in GetParamDacData()
117 security->cred.gid = getegid(); in InitLocalSecurityLabel()
128 static int DacGetGroupMember(gid_t gid, uid_t *member, uint32_t *memberSize) in DacGetGroupMember() argument
132 struct group *data = getgrgid(gid); in DacGetGroupMember()
146 PARAM_LOGE("Not enough memory for uid member %u", gid); in DacGetGroupMember()
164 auditData->dacData.gid = -1; in LoadOneParam_()
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.1.5.2/
H A Dchangelogs-filemanagement.md21 | @ohos.fileio | **function** chown(path: string, uid: number, gid: number): Promise<void> …
22 | @ohos.fileio | **function** chown(path: string, uid: number, gid: number, callback: Async…
23 | @ohos.fileio | **function** chownSync(path: string, uid: number, gid: number): void | 功能不…
24 | @ohos.fileio | **function** fchown(fd: number, uid: number, gid: number): Promise<void> |…
25 | @ohos.fileio | **function** fchown(fd: number, uid: number, gid: number, callback: AsyncC…
26 | @ohos.fileio | **function** fchownSync(fd: number, uid: number, gid: number): void | 功能不可…
27 | @ohos.fileio | **function** lchown(path: string, uid: number, gid: number): Promise<void>…
28 | @ohos.fileio | **function** lchown(path: string, uid: number, gid: number, callback: Asyn…
29 | @ohos.fileio | **function** lchownSync(path: string, uid: number, gid: number): void | 功能…
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/src/opentype_parser/
H A Dranges.cpp27 singles_[range.start] = range.gid; in AddRange()
39 for (const auto &[start, end, gid] : ranges_) { in GetGlyphId()
41 return codepoint + gid; in GetGlyphId()
50 for (const auto &[start, end, gid] : ranges_) { in Dump()
58 for (const auto &[codepoint, gid] : singles_) { in Dump()
62 << (codepoint + gid) % (1 << 16); // 16 means offset; 1 << 16 means residual multiple in Dump()
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-debug-shell-cmd-su.md21 | gid | 目标用户的群组id值。 | -&nbsp;为空。<br/>-&nbsp;[0, 60000] |
26 - su命令缺省切换到root用户,uid默认为0,gid为0。
28 - 在su命令后的输入参数uid和gid就可以切换到该uid和gid的用户。
40 **示例** 切换到为uid为1000,gid为1000的用户
/ohos5.0/foundation/resourceschedule/ffrt/src/queue/
H A Dqueue_handler.cpp129 uint64_t gid = task->gid; in Submit() local
130 FFRT_SERIAL_QUEUE_TASK_SUBMIT_MARKER(GetQueueId(), gid); in Submit()
148 FFRT_LOGD("submit task[%lu] into %s", gid, name_.c_str()); in Submit()
161 FFRT_LOGD("task [%llu] activate %s", gid, name_.c_str()); in Submit()
212 FFRT_LOGD("cancel task[%llu] %s succ", task->gid, task->label.c_str()); in Cancel()
227 FFRTFacade::GetQMInstance().UpdateQueueInfo(GetQueueId(), task->gid); in Dispatch()
228 execTaskId_.store(task->gid); in Dispatch()
231 FFRT_LOGD("run task [gid=%llu], queueId=%u", task->gid, GetQueueId()); in Dispatch()
233 FFRT_SERIAL_QUEUE_TASK_EXECUTE_MARKER(task->gid); in Dispatch()
286 FFRT_READY_MARKER(task->gid); // ffrt queue task ready to enque in TransferTask()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/
H A Dasset_loader.rs49 gid: &str, in upload()
55 gid, in upload()
68 gid: &str, in download()
74 gid, in download()
90 gid: &str, in upload_download_inner()
113 let ret = f(&self.asset_loader, alias, gid, prefix, &assets_ipc)?; in upload_download_inner()
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.5.2/
H A Dchangelogs-filemanagement.md21 | @ohos.fileio | **function** chown(path: string, uid: number, gid: number): Promise<void> …
22 | @ohos.fileio | **function** chown(path: string, uid: number, gid: number, callback: Async…
23 | @ohos.fileio | **function** chownSync(path: string, uid: number, gid: number): void | Fun…
24 | @ohos.fileio | **function** fchown(fd: number, uid: number, gid: number): Promise<void> |…
25 | @ohos.fileio | **function** fchown(fd: number, uid: number, gid: number, callback: AsyncC…
26 | @ohos.fileio | **function** fchownSync(fd: number, uid: number, gid: number): void | Func…
27 | @ohos.fileio | **function** lchown(path: string, uid: number, gid: number): Promise<void>…
28 | @ohos.fileio | **function** lchown(path: string, uid: number, gid: number, callback: Asyn…
29 | @ohos.fileio | **function** lchownSync(path: string, uid: number, gid: number): void | Fu…
/ohos5.0/base/startup/init/test/unittest/param/
H A Dparamservice_unittest.cpp83 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1()
96 EXPECT_EQ(node->gid, 0); in TestAddSecurityLabel1()
103 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel2()
108 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel2()
121 EXPECT_EQ(node->gid, auditData.dacData.gid); in TestAddSecurityLabel2()
128 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel3()
133 auditData.dacData.gid = 203; // 203 test gid in TestAddSecurityLabel3()
140 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel3()
154 EXPECT_EQ((int)node->gid, 203); // 203 test gid in TestAddSecurityLabel3()
166 auditData.dacData.gid = 203; // 203 test gid in TestAddSecurityLabel4()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/
H A Dasset_loader_test.cpp34 std::string gid; variable
37 auto ret = loader.Download(tableName, gid, prefix, assets);
50 std::string gid; variable
53 auto ret = loader.RemoveLocalAssets(tableName, gid, prefix, assets);
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-boot-init-service.md27 | gid | 必选 | 小型系统和标准系统 | 当前服务进程的gid值。 | 类型:int、int[]、字符串、字符串数组。 |
52 | gid | socket节点文件的组ID。此项配置仅对如AF_UNIX地址族等有实体节点文件的socket类型有效。|
182 服务进程的DAC权限通过服务进程配置文件的gid, uid项来设置。
184 如果新增gid, uid需要在init模块的/init/services/etc/passwd文件和 /init/services/etc/group文件中添加。
226 - 若gid,uid设置为root或system,则需要在对应产品目录下的security_config/high_privilege_process_list.json文件种添加白名单,例如:
234 "gid": "root"
243 "gid": "root"
247 "gid": ["root", "system"]
252 "gid": "root"
302 | INIT_EGIDSET | 14 | Set gid fail | 设置服务gid失败 |
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-cmd-su.md21 | gid | Specifies the ID of the target user group.| - Left blank<br>- [0, 60000] |
26 …the **su** command switches to user **root** by default. The **uid** and **gid** for user **root**…
28 - If **uid** and **gid** are specified, this command allows commands to be executed as the user wit…
40 The user with both **uid** and **gid** of **1000** is switched.
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/
H A Dasset_loader_impl.cpp35 const std::string &tableName, const std::string &gid, const DBValue &prefix, DBVBucket &assets) in Download() argument
45 .gid = reinterpret_cast<const unsigned char *>(gid.c_str()), in Download()
46 .gidLen = gid.size(), in Download()
71 const std::string &tableName, const std::string &gid, const DBValue &prefix, DBVBucket &assets) in RemoveLocalAssets() argument
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/
H A Dscheduler.cpp91 task->gid, task->type, task->label.c_str()); in WakeupTask()
97 uint64_t gid = task->gid; in WakeupTask() local
101 FFRT_READY_MARKER(gid); // ffrt normal task ready to enque in WakeupTask()
109 FFRT_LOGD("qos[%d] task[%lu] entered q", level, gid); in WakeupTask()
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Ddata_group_info.cpp39 gid = parcel.ReadInt32(); in ReadFromParcel()
50 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, gid); in Marshalling()
73 {GID, dataGroupInfo.gid}, in to_json()
109 dataGroupInfo.gid, in from_json()
132 + ", gid = " + std::to_string(gid) in ToString()

12345678910>>...19