---
name: "sysdecode_utrace"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/sysdecode_utrace"
---

# sysdecode\_utrace(3)

produce text description of a utrace record

## NAME

**sysdecode\_utrace** – produce text description of a utrace record

## LIBRARY

library “libsysdecode”

## SYNOPSIS

**#include \<sysdecode.h\>**

*int*\

**sysdecode\_utrace**(*FILE \*fp*, *void \*buf*, *size\_t len*, *int decimal*);

## DESCRIPTION

The **sysdecode\_utrace**() function outputs a textual representation of a [utrace(2)](/utrace/2.md) record identified by *buf* and *len* to the output stream *fp*.

The function only outputs a representation for certain types of records. If a record is recognized, the function outputs the description and returns a non-zero value. If the record is not recognized, the function does not output anything and returns zero. The **sysdecode\_utrace**() function currently recognizes [utrace(2)](/utrace/2.md) records generated by [malloc(3)](/malloc/3.md) and [rtld(1)](/rtld/1.md).

## RETURN VALUES

The **sysdecode\_utrace**() function returns a non-zero value if it recognizes a [utrace(2)](/utrace/2.md) record; otherwise it returns zero.

## SEE ALSO

[utrace(2)](/utrace/2.md), [sysdecode(3)](/sysdecode/3.md)
