Skip to content

Commit

Permalink
tools/capable: support new capabilities
Browse files Browse the repository at this point in the history
This commit adds the support of below capabilities.
* CAP_PERFMON
* CAP_BPF
* CAP_CHECKPOINT_RESTORE

Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
  • Loading branch information
Kenta Tada authored and Kenta Tada committed Sep 2, 2020
1 parent e375083 commit 5632c7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ and this project adheres to
#### Tools
- Hook up execsnoop.bt script onto `execveat` call
- [#1490](https://github.com/iovisor/bpftrace/pull/1490)
- Support new capabilities for capable.bt
- [#1498](https://github.com/iovisor/bpftrace/pull/1498)

#### Documentation

Expand Down
3 changes: 3 additions & 0 deletions tools/capable.bt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ BEGIN
@cap[35] = "CAP_WAKE_ALARM";
@cap[36] = "CAP_BLOCK_SUSPEND";
@cap[37] = "CAP_AUDIT_READ";
@cap[38] = "CAP_PERFMON";
@cap[39] = "CAP_BPF";
@cap[40] = "CAP_CHECKPOINT_RESTORE";
}

kprobe:cap_capable
Expand Down

0 comments on commit 5632c7a

Please sign in to comment.