mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:25:08 +00:00
Userland: Add "functrace" utility
functrace traces the function calls a program makes. It's like strace, but for userspace. It works by using Debugging functionality to insert breakpoints at call&ret instructions.
This commit is contained in:
parent
13865c7c3d
commit
f4418361c4
8 changed files with 175 additions and 4 deletions
|
@ -24,7 +24,6 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "DebugSession.h"
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Demangle.h>
|
||||
|
@ -33,6 +32,7 @@
|
|||
#include <AK/kmalloc.h>
|
||||
#include <LibC/sys/arch/i386/regs.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibDebug/DebugSession.h>
|
||||
#include <LibX86/Disassembler.h>
|
||||
#include <LibX86/Instruction.h>
|
||||
#include <signal.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue