1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Kernel: Accept RegisterState in append_with_ip_and_bp

This commit is contained in:
James Mintram 2021-10-11 23:52:03 +01:00 committed by Brian Gianforcaro
parent edbd8b22e8
commit a4509ba633
2 changed files with 10 additions and 0 deletions

View file

@ -12,6 +12,7 @@
namespace Kernel {
class KBufferBuilder;
struct RegisterState;
struct [[gnu::packed]] MallocPerformanceEvent {
size_t size;
@ -103,6 +104,8 @@ public:
KResult append(int type, FlatPtr arg1, FlatPtr arg2, const StringView& arg3, Thread* current_thread = Thread::current());
KResult append_with_ip_and_bp(ProcessID pid, ThreadID tid, FlatPtr eip, FlatPtr ebp,
int type, u32 lost_samples, FlatPtr arg1, FlatPtr arg2, const StringView& arg3);
KResult append_with_ip_and_bp(ProcessID pid, ThreadID tid, const RegisterState& regs,
int type, u32 lost_samples, FlatPtr arg1, FlatPtr arg2, const StringView& arg3);
void clear()
{