Home
last modified time | relevance | path

Searched refs:tgid (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/jni/
Dcom_android_internal_os_KernelSingleProcessCpuThreadReader.cpp86 bool startTrackingProcessCpuTimes(pid_t tgid) { in startTrackingProcessCpuTimes() argument
87 return android::bpf::startTrackingProcessCpuTimes(tgid); in startTrackingProcessCpuTimes()
114 bool startTrackingProcessCpuTimes(pid_t tgid);
119 getAggregatedTaskCpuFreqTimes(pid_t tgid, const std::vector<uint16_t> &aggregationKeys);
137 static jboolean startTrackingProcessCpuTimes(JNIEnv *env, jclass, jint tgid, in startTrackingProcessCpuTimes() argument
141 return cpuTimeInStateReader->startTrackingProcessCpuTimes(tgid); in startTrackingProcessCpuTimes()
270 bool MockCpuTimeInStateReader::startTrackingProcessCpuTimes(pid_t tgid) { in startTrackingProcessCpuTimes() argument
277 return mEnv->CallBooleanMethod(mCpuTimeInStateReader, mid, tgid); in startTrackingProcessCpuTimes()
/frameworks/native/services/powermanager/tests/
DPowerHalWrapperAidlTest.cpp51 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
211 int32_t tgid = 999; in TEST_F() local
215 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F()
217 auto result = mWrapper->createHintSession(tgid, uid, threadIds, durationNanos); in TEST_F()
222 int32_t tgid = 999; in TEST_F() local
227 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F()
230 auto result = mWrapper->createHintSession(tgid, uid, threadIds, durationNanos); in TEST_F()
/frameworks/base/services/core/jni/
Dcom_android_server_hint_HintManagerService.cpp45 static jlong createHintSession(JNIEnv* env, int32_t tgid, int32_t uid, in createHintSession() argument
48 gPowerHalController.createHintSession(tgid, uid, std::move(threadIds), durationNanos); in createHintSession()
98 static jlong nativeCreateHintSession(JNIEnv* env, jclass /* clazz */, jint tgid, jint uid, in nativeCreateHintSession() argument
109 return createHintSession(env, tgid, uid, std::move(threadIds), durationNanos); in nativeCreateHintSession()
/frameworks/base/startop/scripts/trace_analyzer/lib/
Dtrace2db.py41 tgid = Column(Integer, nullable=True) # ----- -> None. variable in RawFtraceEntry
73 tgid = groups[2]
74 if tgid == '-----':
75 tgid = None
83 …return {'task_name': task_name, 'task_pid': task_pid, 'tgid': tgid, 'cpu': cpu, 'timestamp': times…
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelSingleProcessCpuThreadReaderTest.java91 public boolean startTrackingProcessCpuTimes(int tgid) { in startTrackingProcessCpuTimes() argument
92 mTrackedTgid = tgid; in startTrackingProcessCpuTimes()
DSystemServerCpuThreadReaderTest.java85 public boolean startTrackingProcessCpuTimes(int tgid) { in startTrackingProcessCpuTimes() argument
/frameworks/base/services/core/java/com/android/server/power/hint/
DHintManagerService.java129 private static native long nativeCreateHintSession(int tgid, int uid, int[] tids, in nativeCreateHintSession() argument
152 public long halCreateHintSession(int tgid, int uid, int[] tids, long durationNanos) { in halCreateHintSession() argument
153 return nativeCreateHintSession(tgid, uid, tids, durationNanos); in halCreateHintSession()
255 private boolean checkTidValid(int uid, int tgid, int [] tids) { in checkTidValid() argument
266 eligiblePids.add(tgid); in checkTidValid()
/frameworks/native/services/powermanager/
DPowerHalController.cpp102 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument
104 auto result = handle->createHintSession(tgid, uid, threadIds, durationNanos); in createHintSession()
DPowerHalWrapper.cpp238 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument
241 fromStatus(mHandle->createHintSession(tgid, uid, threadIds, durationNanos, &appSession), in createHintSession()
/frameworks/native/include/powermanager/
DPowerHalWrapper.h123 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
137 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
152 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
190 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
DPowerHalController.h61 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
/frameworks/native/services/powermanager/benchmarks/
DPowerHalAidlBenchmarks.cpp156 int32_t tgid = 999; in BM_PowerHalAidlBenchmarks_createHintSession() local
166 binder::Status ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession()
173 ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession()
/frameworks/base/core/java/com/android/internal/os/
DKernelSingleProcessCpuThreadReader.java67 boolean startTrackingProcessCpuTimes(int tgid); in startTrackingProcessCpuTimes() argument
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp606 getAggregatedTaskCpuFreqTimes(pid_t tgid, const std::vector<uint16_t> &aggregationKeys) { in getAggregatedTaskCpuFreqTimes() argument
622 aggregated_task_tis_key_t key{.tgid = tgid, .aggregation_key = aggregationKey}; in getAggregatedTaskCpuFreqTimes()
Dtesttimeinstate.cpp601 pid_t tgid = getpid(); in TEST() local
602 startTrackingProcessCpuTimes(tgid); in TEST()
618 getAggregatedTaskCpuFreqTimes(tgid, {0, 42}); in TEST()
/frameworks/base/core/proto/android/os/
Dps.proto40 // group ID for the thread group leader (tgid); and a tty process group
/frameworks/native/cmds/atrace/
Datrace.rc20 chmod 0666 /sys/kernel/debug/tracing/options/print-tgid
21 chmod 0666 /sys/kernel/tracing/options/print-tgid
22 chmod 0666 /sys/kernel/debug/tracing/options/record-tgid
23 chmod 0666 /sys/kernel/tracing/options/record-tgid