#include "snapshot/linux/thread_snapshot_linux.h"
#include <sched.h>
#include "base/logging.h"
#include "snapshot/linux/capture_memory_delegate_linux.h"
#include "snapshot/linux/cpu_context_linux.h"
#include "util/misc/reinterpret_bytes.h"
namespace crashpad {
namespace internal {
namespace {
int ComputeThreadPriority(int static_priority,
int sched_policy,
int nice_value) { … }
}
ThreadSnapshotLinux::ThreadSnapshotLinux()
: … { … }
ThreadSnapshotLinux::~ThreadSnapshotLinux() { … }
bool ThreadSnapshotLinux::Initialize(
ProcessReaderLinux* process_reader,
const ProcessReaderLinux::Thread& thread,
uint32_t* gather_indirectly_referenced_memory_bytes_remaining) { … }
const CPUContext* ThreadSnapshotLinux::Context() const { … }
const MemorySnapshot* ThreadSnapshotLinux::Stack() const { … }
uint64_t ThreadSnapshotLinux::ThreadID() const { … }
std::string ThreadSnapshotLinux::ThreadName() const { … }
int ThreadSnapshotLinux::SuspendCount() const { … }
int ThreadSnapshotLinux::Priority() const { … }
uint64_t ThreadSnapshotLinux::ThreadSpecificDataAddress() const { … }
std::vector<const MemorySnapshot*> ThreadSnapshotLinux::ExtraMemory() const { … }
}
}