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

# probe::kprocess.exec(3stap)

Attempt to exec to a new program

## NAME

probe::kprocess.exec - Attempt to exec to a new program

## SYNOPSIS

```
kprocess.exec
```

## VALUES

*filename*

The path to the new executable

*name*

Name of the system call (“execve”) (SystemTap v2.5+)

*args*

The arguments to pass to the new executable, including the 0th arg (SystemTap v2.5+)

*argstr*

A string containing the filename followed by the arguments to pass, excluding 0th arg (SystemTap v2.5+)

## CONTEXT

The caller of exec.

## DESCRIPTION

Fires whenever a process attempts to exec to a new program. Aliased to the syscall.execve probe in SystemTap v2.5+.

## SEE ALSO0

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