16#ifndef LIEF_ELF_CORE_PRPSINFO_H
17#define LIEF_ELF_CORE_PRPSINFO_H
60 arch_(arch), class_(cls)
63 std::unique_ptr<Note>
clone()
const override {
71 void dump(std::ostream& os)
const override;
static bool classof(const Note *note)
Definition CorePrPsInfo.hpp:75
void info(const info_t &info)
~CorePrPsInfo() override=default
void dump(std::ostream &os) const override
friend std::ostream & operator<<(std::ostream &os, const CorePrPsInfo ¬e)
Definition CorePrPsInfo.hpp:82
CorePrPsInfo(ARCH arch, Header::CLASS cls, std::string name, uint32_t type, description_t description)
Definition CorePrPsInfo.hpp:57
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition CorePrPsInfo.hpp:63
void accept(Visitor &visitor) const override
result< info_t > info() const
Return a elf_prpsinfo-like structure or an error if it can't be parsed.
std::vector< uint8_t > description_t
Container used to handle the description data.
Definition Note.hpp:46
TYPE
LIEF representation of the ELF NT_ values.
Definition Note.hpp:49
@ CORE_PRPSINFO
Coredump that wraps the elf_prpsinfo structure.
Definition Note.hpp:77
TYPE type() const
Return the type of the note. This type does not match the NT_ type value. For accessing the original ...
Definition Note.hpp:195
const std::string & name() const
Return the name of the note (also known as 'owner' ).
Definition Note.hpp:184
Note(const Note ©)=default
span< const uint8_t > description() const
Return the description associated with the note.
Definition Note.hpp:206
Definition Visitor.hpp:210
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
ARCH
Definition ELF/enums.hpp:30
@ NONE
Definition ELF/enums.hpp:31
LIEF namespace.
Definition Abstract/Binary.hpp:40
tl::expected< T, lief_errors > result
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:75
Definition CorePrPsInfo.hpp:32
uint32_t pgrp
Process parent ID.
Definition CorePrPsInfo.hpp:42
uint32_t ppid
Process ID.
Definition CorePrPsInfo.hpp:41
char sname
Numeric process state.
Definition CorePrPsInfo.hpp:34
uint32_t gid
Process user ID.
Definition CorePrPsInfo.hpp:39
std::string filename_stripped() const
Initial part of the arguments.
Definition CorePrPsInfo.hpp:48
uint8_t state
Definition CorePrPsInfo.hpp:33
uint8_t nice
Whether the process is a zombie.
Definition CorePrPsInfo.hpp:36
uint64_t flag
Nice value.
Definition CorePrPsInfo.hpp:37
std::string args
Filename of the executable.
Definition CorePrPsInfo.hpp:45
uint32_t uid
Process flag.
Definition CorePrPsInfo.hpp:38
uint32_t sid
Process group.
Definition CorePrPsInfo.hpp:43
uint32_t pid
Process group ID.
Definition CorePrPsInfo.hpp:40
bool zombie
printable character representing state
Definition CorePrPsInfo.hpp:35
std::string filename
Process session id.
Definition CorePrPsInfo.hpp:44
std::string args_stripped() const
Return the args without the ending \x00.
Definition CorePrPsInfo.hpp:53
#define LIEF_API
Definition visibility.h:41