7#include <cosmos/io/types.hxx>
8#include <cosmos/proc/SigInfo.hxx>
9#include <cosmos/proc/SigSet.hxx>
10#include <cosmos/proc/types.hxx>
11#include <cosmos/fwd.hxx>
14#include <clues/dso_export.h>
15#include <clues/fwd.hxx>
27namespace clues::format {
34CLUES_API std::string signal(
const cosmos::SignalNr signal,
const bool verbose=
true);
37CLUES_API std::string signal_set(
const cosmos::SigSet &set);
40CLUES_API std::string saflags(
const int flags);
43CLUES_API std::string limit(
const uint64_t lim);
46CLUES_API std::string si_code(
const cosmos::SigInfo::Source src);
49CLUES_API std::string si_reason(
const cosmos::SigInfo::SysData::Reason reason);
52CLUES_API std::string si_reason(
const cosmos::SigInfo::PollData::Reason reason);
55CLUES_API std::string si_reason(
const cosmos::SigInfo::IllData::Reason reason);
58CLUES_API std::string si_reason(
const cosmos::SigInfo::FPEData::Reason reason);
61CLUES_API std::string si_reason(
const cosmos::SigInfo::SegfaultData::Reason reason);
64CLUES_API std::string si_reason(
const cosmos::SigInfo::BusData::Reason reason);
67CLUES_API std::string ptrace_arch(
const cosmos::ptrace::Arch arch);
70CLUES_API std::string child_event(
const cosmos::SigInfo::ChildData::Event event);
73CLUES_API std::string poll_event(
const cosmos::PollEvent event);
76CLUES_API std::string poll_events(
const cosmos::PollEvents events);
79CLUES_API std::string sig_info(
const cosmos::SigInfo &info);
82CLUES_API std::string_view file_type(
const cosmos::FileType type);
85CLUES_API std::string file_mode_numeric(
const cosmos::FileModeBits mode);
88CLUES_API std::string file_mode_symbolic(
const cosmos::FileModeBits mode);
91CLUES_API std::string device_id(
const cosmos::DeviceID
id);
94CLUES_API std::string timespec(
const struct timespec &ts,
const bool only_secs =
false);
97CLUES_API std::string timeval(
const struct timeval &tv,
const bool only_secs =
false);
100CLUES_API std::string buffer(
const uint8_t *buffer,
const size_t len);
103CLUES_API std::string control_char(
const char ch);
106CLUES_API std::string pointer(
const ForeignPtr ptr);
109CLUES_API std::string pointer(
const ForeignPtr ptr,
const std::string_view data);
112CLUES_API std::string_view fd_type(
const FDInfo &info);
115CLUES_API std::string fd_info(
const FDInfo &info);
118std::string event(
const cosmos::ChildState &state);
ForeignPtr
Strongly typed opaque pointer to tracee memory.