Skip to content

Extend kbox debugging and system analysis#71

Draft
Kai5088 wants to merge 4 commits into
sysprog21:mainfrom
Kai5088:debug-analysis
Draft

Extend kbox debugging and system analysis#71
Kai5088 wants to merge 4 commits into
sysprog21:mainfrom
Kai5088:debug-analysis

Conversation

@Kai5088

@Kai5088 Kai5088 commented Jul 7, 2026

Copy link
Copy Markdown
  • Add conditional breakpoint framework for GDB
  • Add ftrace buffer export mechanism
  • Add drgn probing scripts for LKL kernel state
  • Add .gitignore for trace artifacts and vendored deps

Summary by cubic

Adds LKL ftrace tracing (tracer and event modes) with CLI flags and host export, plus GDB and drgn helpers to make kernel debugging easier.

  • New Features
    • LKL ftrace tracer mode: enable with --ftrace=function|function_graph, optional --ftrace-filter=SYM, and export with --ftrace-dump=PATH. Mounts tracefs at /.kbox-tracing and clears the buffer before start.
    • Event mode: enable tracepoints via --ftrace-events=cat/ev,... and write results to --ftrace-outdir (creates ftrace.log and start_ts aligned to LKL /proc/uptime).
    • Lifecycle hooks: tracing is set up after boot and automatically dumped on shutdown or error paths.
    • GDB helpers: scripts/gdb/kbox-events.py adds kbox-break-pid and kbox-break-openat for string/struct-aware conditional breakpoints.
    • drgn helper: scripts/drgn/kbox_tasks.py lists LKL tasks (PID/COMM/STATE) for quick state inspection.

Written for commit 000080d. Summary will update on new commits.

Review in cubic

Kai5088 added 4 commits July 7, 2026 20:52
Change-Id: Id3cdd80fabd6290f81f3789a37739883349ccdd7
Change-Id: Ib6ff3821f2bec4ec1b9382ff1dc9dbc9403a825b
Change-Id: I579fcee2ef4b9d9e113ee34ac54895b3efc920dd
Change-Id: I8bea043198ee7c4d5e79ee8e5736691a03a35443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant