---
name: "function::pnlabel"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::pnlabel"
---

# function::pnlabel(3stap)

Returns the label name parsed from the probe name

## NAME

function::pnlabel - Returns the label name parsed from the probe name

## SYNOPSIS

```
    pnlabel:string()
```

## ARGUMENTS

None

## DESCRIPTION

This returns the label name as parsed from the script-level probe point. This function will only work if called directly from the body of a '.label' probe point (i.e. no aliases).

## CONTEXT

The current probe point.

## SEE ALSO0

[*tapset::pn*(3stap)](/tapset::pn/3stap.md)
