Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KFT python lib #1418

Merged
merged 15 commits into from
Feb 6, 2024
Merged

KFT python lib #1418

merged 15 commits into from
Feb 6, 2024

Conversation

franciscozdo
Copy link
Collaborator

@franciscozdo franciscozdo commented Nov 25, 2023

This PR adds implementation of basic functions needed to parse KFT dumps.

It defines kftlib python module that can be imported in other scripts. Currently I am not planning to create one ultimate tool for analyzing KFT dumps. I would rather work on extending kftlib to include building blocks for more advanced scripts desinged for specific analyze.

In kftlib/examples there are example scripts for analysis:

  • tree.py - creates a call graph for all executions given function
  • get_functions_times.py - generates information about running time of functions

@franciscozdo franciscozdo added the review please review this PR label Nov 25, 2023
kftlib/kftlib/inspect.py Outdated Show resolved Hide resolved
kftlib/kftlib/inspect.py Outdated Show resolved Hide resolved
kftlib/kftlib/stats.py Outdated Show resolved Hide resolved
kftlib/kftlib/elf.py Outdated Show resolved Hide resolved
kftlib/examples/tree.py Outdated Show resolved Hide resolved
Copy link
Owner

@cahirwpz cahirwpz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small improvements needed. Otherwise looks good.

kftlib/examples/tree.py Outdated Show resolved Hide resolved
kftlib/examples/tree.py Outdated Show resolved Hide resolved
kftlib/examples/tree.py Outdated Show resolved Hide resolved
kftlib/examples/tree.py Outdated Show resolved Hide resolved
kftlib/kftlib/elf.py Show resolved Hide resolved
kftlib/examples/get_functions_times.py Outdated Show resolved Hide resolved
kftlib/kftlib/inspect.py Show resolved Hide resolved
kftlib/kftlib/inspect.py Outdated Show resolved Hide resolved
kftlib/kftlib/stats.py Show resolved Hide resolved
kftlib/kftlib/stats.py Outdated Show resolved Hide resolved
Copy link
Owner

@cahirwpz cahirwpz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cahirwpz cahirwpz merged commit 3dffeaf into cahirwpz:master Feb 6, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review please review this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants