Python parser for kdebug events
Project description
Description
pykdebugparser
is a utility created in order to parse Darwin's (iOS and OSX) kdebug events.
The main difference between pykdebugparser
and other utilities like fs_usage and ktrace is the traces parsing and
formatting.
Installation
Install the last released version using pip
:
python3 -m pip install --user -U pykdebugparser
Or install the latest version from sources:
git clone git@github.com:matan1008/pykdebugparser.git
cd pykdebugparser
python3 -m pip install --user -U -e .
Usage
You can either use the CLI:
Usage: pykdebugparser [OPTIONS] KDEBUG_DUMP
Options:
-c, --count INTEGER Number of events to print. Omit to endless
sniff.
--tid INTEGER Thread ID to filter. Omit for all.
--show-tid / --no-show-tid Whether to print thread id or not.
--color / --no-color Whether to print with color or not.
--help Show this message and exit.
Or import and use the API yourself:
from pykdebugparser.pykdebugparser import PyKdebugParser
parser = PyKdebugParser()
parser.color = True
with open('kdebug.bin', 'rb') as fd:
for trace in parser.formatted_traces(fd):
print(trace)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pykdebugparser-0.0.1.tar.gz
(30.6 kB
view hashes)
Built Distribution
Close
Hashes for pykdebugparser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f580e1853b14bcd69dc22891bf391a24533c1c9e5dd107720a82921d8b48975 |
|
MD5 | 8c86773243517ba47c64ae2040d2bd46 |
|
BLAKE2b-256 | 0edd76743318142817dde7705c0432e773a3780183ed40f2afe51e3991d719ab |