Git Product home page Git Product logo

tracedump's Introduction

tracedump

System service to dump Intel processor trace + memory after a crash.

INSTALL

Install processor-trace, we tested with v2.0. Than install poetry in order to build the project with:

$ poetry install

To get a virtual environment with the tracedump python library use:

$ poetry shell

USAGE

Get traces from process id

$ sudo tracedumpd --pid 4660

Get traces from child process

$ tracedumpd -- bash -c 'kill -11 $$'

If the application creates a coredump there will be an archive created in /var/lib/tracedump. This archive can be read by the tracedump decoder library. An example is in ./examples/read_trace.py:

root> ./examples/read_trace.py /var/lib/tracedump/bash-20201102T131134.tar.gz
# ...
<Instruction[ptic_other] @ 0x7f83652f783b> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f783c> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f783d> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f783f> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f7843> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_cond_jump] @ 0x7f83652f7846> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f7857> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f785c> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f7865> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f786d> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f7872> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_cond_jump] @ 0x7f83652f7874> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f7876> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_other] @ 0x7f83652f7879> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so
<Instruction[ptic_far_call] @ 0x7f83652f787e> at 7f836522a000-7f836536e000 r-xp 144000 /run/user/1000/tmp6_g4xyeq/binaries/nix/store/bdf8iipzya03h2amgfncqpclf6bmy3a1-glibc-2.32/lib/libc-2.32.so

tracedump's People

Contributors

mic92 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.