insight-trace

Generate MindStudio Insight traces for kernel_entry kernels via msprof op simulator.

34|71|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/hw-native-sys/simpler --skill insight-trace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: insight-trace
Source: https://github.com/hw-native-sys/simpler/tree/main/.claude/skills/insight-trace
Command: npx skills add https://github.com/hw-native-sys/simpler --skill insight-trace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables automated generation of MindStudio Insight traces for kernel_entry(args) style kernels by building a mix-arch wrapper, executing the msprof op simulator, and exporting per-core trace data for analysis.

Core Features & Use Cases

  • Supports SPMD mix, AIC-only, and AIV-only kernel shapes to cover common trace scenarios.
  • Produces complete trace artifacts consumable by MindStudio Insight, including trace.json and per-core instr_exe CSVs.
  • Provides a self-contained workspace workflow (wrapper, host runner, and launcher) to enable end-to-end tracing in isolation or PTO-style contexts.

Quick Start

Run the Insight trace workflow against a kernel_entry style kernel to generate per-core trace data and a MindStudio-ready export.

Frequently Asked Questions about insight-trace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate MindStudio Insight traces for kernel_entry style kernels?

To generate MindStudio Insight traces for kernel_entry style kernels, you need to build a mix-arch wrapper, run the msprof op simulator, and export per-core trace data as trace.json and core subdirectories.

Does msprof tracing support both AIC-only and AIV-only kernel shapes?

Yes, msprof tracing supports SPMD mix, AIC-only, and AIV-only kernel shapes, allowing you to cover common trace scenarios and generate per-core trace data for analysis in MindStudio Insight.

What artifacts are produced when running an Insight trace on a kernel?

Running an Insight trace produces complete artifacts consumable by MindStudio Insight, specifically a trace.json file and per-core instr_exe CSVs within core subdirectories for detailed analysis.

Can I run kernel tracing in isolation without a full application context?

Yes, you can run kernel tracing in isolation or in PTO-style contexts by utilizing a self-contained workspace workflow that includes a wrapper, host runner, and launcher for end-to-end execution.

Why do I need a mix-arch wrapper to trace kernel performance?

A mix-arch wrapper is required to enforce correct args layout and host/kernel integration, enabling the msprof op simulator to accurately execute and export per-core trace data for your specific kernel shape.

What is needed to export per-core trace data for MindStudio Insight?

Exporting per-core trace data requires building a mix-arch wrapper, executing the msprof op simulator against a kernel_entry, and generating trace.json along with core subdirectories containing trace CSVs.