/aosp_15_r20/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/ |
H A D | CpuWakeupStatsTest.java | 161 final long wakeupTime = mRandom.nextLong(123456); in irqAttributionAllCombinations() local 171 obj.noteWakingActivity(subsystems[i], wakeupTime + 2, uids[i]); in irqAttributionAllCombinations() 173 obj.noteWakeupTimeAndReason(wakeupTime, 1, combinedKernelReason); in irqAttributionAllCombinations() 177 final SparseArray<SparseIntArray> attribution = obj.mWakeupAttribution.get(wakeupTime); in irqAttributionAllCombinations() 201 final long wakeupTime = 12423121; in alarmIrqAttributionSolo() local 205 obj.noteWakeupTimeAndReason(wakeupTime, 1, KERNEL_REASON_ALARM_IRQ); in alarmIrqAttributionSolo() 209 wakeupTime - obj.mConfig.WAKEUP_MATCHING_WINDOW_MS - 1, TEST_UID_1); in alarmIrqAttributionSolo() 211 wakeupTime + obj.mConfig.WAKEUP_MATCHING_WINDOW_MS + 1, TEST_UID_2); in alarmIrqAttributionSolo() 213 obj.noteWakingActivity(CPU_WAKEUP_SUBSYSTEM_ALARM, wakeupTime + 5, TEST_UID_3, TEST_UID_5); in alarmIrqAttributionSolo() 215 final SparseArray<SparseIntArray> attribution = obj.mWakeupAttribution.get(wakeupTime); in alarmIrqAttributionSolo() [all …]
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/Scheduler/ |
H A D | VSyncDispatchTimerQueue.cpp | 48 if (!SFTRACE_ENABLED() || !entry.wakeupTime().has_value() || !entry.targetVsync().has_value()) { in traceEntry() 53 ns2us(*entry.wakeupTime() - now), "us; VSYNC in ", in traceEntry() 78 std::optional<nsecs_t> VSyncDispatchTimerQueueEntry::wakeupTime() const { in wakeupTime() function in android::scheduler::VSyncDispatchTimerQueueEntry 327 if (!callback->wakeupTime() && !callback->hasPendingWorkloadUpdate()) { in rearmTimerSkippingUpdateFor() 337 const auto wakeupTime = *callback->wakeupTime(); in rearmTimerSkippingUpdateFor() local 338 if (!min || *min > wakeupTime) { in rearmTimerSkippingUpdateFor() 340 min = wakeupTime; in rearmTimerSkippingUpdateFor() 372 auto const wakeupTime = callback->wakeupTime(); in timerCallback() local 373 if (!wakeupTime) { in timerCallback() 381 if (*wakeupTime < mIntendedWakeupTime + mTimerSlack + lagAllowance) { in timerCallback() [all …]
|
H A D | VSyncDispatchTimerQueue.h | 50 // This moves the state from disarmed->armed and will calculate the wakeupTime. 56 // It will not update the wakeupTime. 57 std::optional<nsecs_t> wakeupTime() const;
|
H A D | EventThread.cpp | 448 void EventThread::onVsync(nsecs_t vsyncTime, nsecs_t wakeupTime, nsecs_t readyTime) { in onVsync() argument 454 mPendingEvents.push_back(makeVSync(mVsyncSchedule->getPhysicalDisplayId(), wakeupTime, in onVsync() 877 return [this](nsecs_t vsyncTime, nsecs_t wakeupTime, nsecs_t readyTime) { in createDispatchCallback() argument 878 onVsync(vsyncTime, wakeupTime, readyTime); in createDispatchCallback()
|
/aosp_15_r20/external/bcc/man/man8/ |
H A D | wakeuptime.8 | 1 .TH wakeuptime 8 "2016-01-27" "USER COMMANDS" 3 wakeuptime \- Summarize sleep to wakeup time by waker kernel stack. Uses Linux eBPF/bcc. 5 .B wakeuptime [\-h] [\-u] [\-p PID] [\-v] [\-f] [\-\-stack-storage-size STACK_STORAGE_SIZE] [\-m MI… 22 of the blocked thread. wakeuptime shows the stack trace of the waker thread. 62 .B wakeuptime 66 .B wakeuptime -u 70 .B wakeuptime 5 74 .B wakeuptime -f 5 78 .B wakeuptime -p 185
|
H A D | offwaketime.8 | 10 up. This combines the summaries from both the offcputime and wakeuptime tools. 118 offcputime(8), wakeuptime(8)
|
/aosp_15_r20/external/bcc/tools/ |
H A D | wakeuptime_example.txt | 1 Demonstrations of wakeuptime, the Linux eBPF/bcc version. 14 blocked stacks. wakeuptime can then be used to show the stacks that performed 24 # ./wakeuptime 121 target: wakeuptime 200 # ./wakeuptime -p 19169 269 # ./wakeuptime -p 19097 5 331 # ./wakeuptime -f 5 434 …percpu;xen_timer_interrupt;hrtimer_interrupt;__hrtimer_run_queues;hrtimer_wakeup;wakeuptime 5005051 450 # ./wakeuptime -h 451 usage: wakeuptime [-h] [-u] [-p PID] [-v] [-f] [all …]
|
H A D | wakeuptime.py | 3 # wakeuptime Summarize sleep to wakeup time by waker kernel stack 6 # USAGE: wakeuptime [-h] [-u] [-p PID] [-v] [-f] [duration] 43 ./wakeuptime # trace blocked time with waker stacks 44 ./wakeuptime 5 # trace for 5 seconds only 45 ./wakeuptime -f 5 # 5 seconds, and output in folded format 46 ./wakeuptime -u # don't include kernel threads (user only) 47 ./wakeuptime -p 185 # trace for PID 185 only
|
/aosp_15_r20/external/bcc/libbpf-tools/ |
H A D | wakeuptime.c | 4 // Based on wakeuptime(8) from BCC by Brendan Gregg 14 #include "wakeuptime.h" 15 #include "wakeuptime.skel.h" 37 const char *argp_program_version = "wakeuptime 0.1"; 43 "USAGE: wakeuptime [-h] [-p PID | -u] [-v] [-m MIN-BLOCK-TIME] " 46 " wakeuptime # trace blocked time with waker stacks\n" 47 " wakeuptime 5 # trace for 5 seconds only\n" 48 " wakeuptime -u # don't include kernel threads (user only)\n" 49 " wakeuptime -p 185 # trace for PID 185 only\n";
|
H A D | .gitignore | 63 /wakeuptime
|
H A D | wakeuptime.bpf.c | 7 #include "wakeuptime.h"
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | VSyncDispatchTimerQueueTest.cpp | 1237 EXPECT_FALSE(entry.wakeupTime()); in TEST_F() 1244 EXPECT_FALSE(entry.wakeupTime()); in TEST_F() 1250 auto const wakeup = entry.wakeupTime(); in TEST_F() 1255 EXPECT_FALSE(entry.wakeupTime()); in TEST_F() 1269 EXPECT_FALSE(entry.wakeupTime()); in TEST_F() 1275 auto const wakeup = entry.wakeupTime(); in TEST_F() 1287 [&](auto vsyncTime, auto wakeupTime, auto readyTime) { in TEST_F() argument 1290 wakeupCalledTime = wakeupTime; in TEST_F() 1300 auto const wakeup = entry.wakeupTime(); in TEST_F() 1313 EXPECT_FALSE(entry.wakeupTime()); in TEST_F() [all …]
|
/aosp_15_r20/external/bcc/tools/old/ |
H A D | wakeuptime.py | 3 # wakeuptime Summarize sleep to wakeup time by waker kernel stack 6 # USAGE: wakeuptime [-h] [-u] [-p PID] [-v] [-f] [duration] 27 ./wakeuptime # trace blocked time with waker stacks 28 ./wakeuptime 5 # trace for 5 seconds only 29 ./wakeuptime -f 5 # 5 seconds, and output in folded format 30 ./wakeuptime -u # don't include kernel threads (user only) 31 ./wakeuptime -p 185 # trace fo PID 185 only
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/ |
D | CommonFixture.java | 103 long wakeupTime = currentTime + timeout; in doSleep() local 104 while (wakeupTime - currentTime > 0) { in doSleep() 105 Log.i(LOG_TAG, "Time left to sleep: " + (wakeupTime - currentTime) + " ms"); in doSleep() 107 Thread.sleep(wakeupTime - currentTime); in doSleep()
|
/aosp_15_r20/device/google/contexthub/firmware/os/platform/stm32/ |
D | platform.c | 406 bool platSleepClockRequest(uint64_t wakeupTime, uint32_t maxJitterPpm, uint32_t maxDriftPpm, uint32… in platSleepClockRequest() argument 410 if (wakeupTime && curTime >= wakeupTime) in platSleepClockRequest() 418 mWakeupTime = wakeupTime; in platSleepClockRequest() 421 if (wakeupTime) in platSleepClockRequest() 422 platSetTimerAlarm(wakeupTime - curTime); in platSleepClockRequest()
|
/aosp_15_r20/external/bcc/debian/ |
H A D | changelog | 5 …* bcc tool updates: funcslower, wakeuptime, profile, offcputime, deadlock, funccount, argdist, kvm… 21 …* libbpf-tools updates for mdflush, drsnoop, statsnoop, ttysnoop, softirqs, wakeuptime, cachestat,… 34 …ol updates for biosnoop, opensnoop, biopattern, killsnoop, runqslower, offcputime, wakeuptime, etc. 337 * wakeuptime, offwaketime, argdist, {xfs,zfs,ext4}{slower,dist}, others
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/protectedaudience/ |
D | FledgeCtsDebuggableJetpackTest.java | 732 long wakeupTime = currentTime + timeout; in doSleep() local 733 while (wakeupTime - currentTime > 0) { in doSleep() 734 Log.d(TAG, String.format("Time left to sleep: %d ms", wakeupTime - currentTime)); in doSleep() 736 Thread.sleep(wakeupTime - currentTime); in doSleep()
|
/aosp_15_r20/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
H A D | SetTimerActivity.java | 119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager() local 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent); in registerWithAlarmManager()
|
/aosp_15_r20/developers/samples/android/deprecated/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
D | SetTimerActivity.java | 119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager() local 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent); in registerWithAlarmManager()
|
/aosp_15_r20/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
H A D | SetTimerActivity.java | 119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager() local 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent); in registerWithAlarmManager()
|
/aosp_15_r20/external/bcc/snap/ |
H A D | snapcraft.yaml | 347 wakeuptime: 348 command: bcc-wrapper wakeuptime
|
/aosp_15_r20/frameworks/native/services/surfaceflinger/FrameTimeline/ |
H A D | FrameTimeline.h | 321 virtual void setSfWakeUp(int64_t token, nsecs_t wakeupTime, Fps refreshRate, 419 std::optional<TimelineItem> predictions, nsecs_t wakeUpTime); 510 void setSfWakeUp(int64_t token, nsecs_t wakeupTime, Fps refreshRate, Fps renderRate) override;
|
H A D | FrameTimeline.cpp | 986 void FrameTimeline::setSfWakeUp(int64_t token, nsecs_t wakeUpTime, Fps refreshRate, in setSfWakeUp() argument 991 mTokenManager.getPredictionsForToken(token), wakeUpTime); in setSfWakeUp() 1026 nsecs_t wakeUpTime) { in onSfWakeUp() argument 1036 mSurfaceFlingerActuals.startTime = wakeUpTime; in onSfWakeUp()
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/power/ |
H A D | PowerManagerShellCommand.java | 266 long wakeUpTime = System.currentTimeMillis() + delayMillis; in runWakeUp() local 286 AlarmManager.RTC_WAKEUP, wakeUpTime, in runWakeUp() local
|
/aosp_15_r20/device/google/contexthub/firmware/os/inc/ |
D | platform.h | 67 bool platSleepClockRequest(uint64_t wakeupTime, uint32_t maxJitterPpm, uint32_t maxDriftPpm, uint32…
|