utrace <0.3.16>

(493585b @ 20250319)

Generated from/for: https://gitlab.com/mambrus/utrace

Modules

utrace-probe Lua API for a utrace-probe

utrace stands for uC-tracer and is a light-weight tracer for C which works on everything from bare-silicon deeply embedded systems, to high-end OS:es like Linux.

utrace-trace-rpc Lua API for a utrace-trace-rpc
examples-Trace High-level documentation and examples of the Trace class

Introduction

Trace is a helper-class to manage low-level probes and tracing

Both probes and tracing are part of the same Lua C-API low-level module utrace but address different areas of "tracing".

Scripts

init.lua Lua VM start-up initialization example
init.lua Lua VM start-up initialization example
dprobes.lua

dprobes.lua

Author: Michael Ambrus, March 2025

This program demonstrates differential probes using high-level class Trace

Part 1 - Setup selections of probes:

- Coarse selections for a groups of probes to operate on - Sub-select from this into sub-groups - Sub-select from sub-groups diff-probes.

quality.lua

quality.lua

Author: Michael Ambrus, November 2018

This program demonstrates UPROBE impact

How to measure impact - approach 1:

- Make a tight C-loop with "known" periodicity - Ref EXAMPLEBASEDELAY_US build option - Run this script as function (see Example below) - Note counter result - Add 10x PROBES in the same loop - Repeat and compare results

EXAMPLE_BASE_DELAY_US   NR-probes   cnt  ndiff
=====================   =========   ===  =====
1000                    1           948
1000                    10          948  0
1000                    100         948  0

100                     1           6627
100                     100         6615-6554 12/1000 !!?

Classes

Trace Declare a new class "Trace" into Lua global table

This class is a helper-class to manage low-level probes and tracing in a user friendlier way.

generated by LDoc 1.5.0 Last updated 2025-03-19 12:42:52