Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9dfc77a authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "MediaUtils: Dump HAL pids in Timecheck abort message" into tm-dev am:...

Merge "MediaUtils: Dump HAL pids in Timecheck abort message" into tm-dev am: d705d89e am: f67ebdab am: f8a4ec6f am: 8a653e55

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/18444943



Change-Id: I64e1f2af3e0f30275a97c1f35bae09e800fecb2f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 629b2ecb 8a653e55
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -189,15 +189,18 @@ void TimeCheck::TimeCheckHandler::onTimeout() const
    // Generate audio HAL processes tombstones and allow time to complete
    // before forcing restart
    std::vector<pid_t> pids = TimeCheck::getAudioHalPids();
    std::string halPids = "HAL pids [ ";
    if (pids.size() != 0) {
        for (const auto& pid : pids) {
            ALOGI("requesting tombstone for pid: %d", pid);
            halPids.append(std::to_string(pid)).append(" ");
            sigqueue(pid, DEBUGGER_SIGNAL, {.sival_int = 0});
        }
        sleep(1);
    } else {
        ALOGI("No HAL process pid available, skipping tombstones");
    }
    halPids.append("]");

    LOG_EVENT_STRING(LOGTAG_AUDIO_BINDER_TIMEOUT, tag.c_str());

@@ -206,6 +209,7 @@ void TimeCheck::TimeCheckHandler::onTimeout() const
            .append(tag)
            .append(" scheduled ").append(formatTime(startTime))
            .append(" on thread ").append(std::to_string(tid)).append("\n")
            .append(halPids).append("\n")
            .append(summary);

    // Note: LOG_ALWAYS_FATAL limits the size of the string - per log/log.h: