Skip to contentSkip to conversation

perf Documentation: Correct branch stack sampling call-stack option

PATCH Applied Dapeng Mi 3 participants 5 messages Dec 16, 2025 – Jan 13

Subsystems (2)
lore
Share & tools
lore

Dapeng Mi

author
#0 lore raw

PATCH 1/1 perf Documentation: Correct branch stack sampling call-stack option

The correct call-stack option for branch stack sampling should be "stack" instead of "call_stack". Correct it.

$perf record -e instructions -j call_stack -- sleep 1 unknown branch filter call_stack, check man page

Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]

-j, --branch-filter <branch filter mask>
branch stack filter modes

Fixes 955f6def5590 ("perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index"")
---
 tools/perf/Documentation/perf-record.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/Documentation/perf-record.txt +1 -1
index e8b9aadbbfa5..3d19e77c9c53 100644
@@ -454,7 +454,7 @@ following filters are defined:
 	- no_tx: only when the target is not in a hardware transaction
 	- abort_tx: only when the target is a hardware transaction abort
 	- cond: conditional branches
-	- call_stack: save call stack
+	- stack: save call stack
 	- no_flags: don't save branch flags e.g prediction, misprediction etc
 	- no_cycles: don't save branch cycles
 	- hw_index: save branch hardware index

base-commit: cb015814f8b6eebcbb8e46e111d108892c5e6821

Signature · 1 line
2.34.1
author
#1 lore raw

@Arnaldo, @Kim, @Ian

Kindly ping ...

Quoted 34 lines · Dapeng Mi

The correct call-stack option for branch stack sampling should be "stack" instead of "call_stack". Correct it.

$perf record -e instructions -j call_stack -- sleep 1 unknown branch filter call_stack, check man page

Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]

-j, --branch-filter <branch filter mask>
branch stack filter modes

Fixes 955f6def5590 ("perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index"")
---
 tools/perf/Documentation/perf-record.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/Documentation/perf-record.txt +1 -1
index e8b9aadbbfa5..3d19e77c9c53 100644
@@ -454,7 +454,7 @@ following filters are defined:
 	- no_tx: only when the target is not in a hardware transaction
 	- abort_tx: only when the target is a hardware transaction abort
 	- cond: conditional branches
-	- call_stack: save call stack
+	- stack: save call stack
 	- no_flags: don't save branch flags e.g prediction, misprediction etc
 	- no_cycles: don't save branch cycles
 	- hw_index: save branch hardware index

base-commit: cb015814f8b6eebcbb8e46e111d108892c5e6821

maintainer Reviewed-by
#2 lore raw

Hello,

Quoted 3 lines · Dapeng

@Arnaldo, @Kim, @Ian

Kindly ping ...

Sorry for the delay.

Quoted 11 lines · Dapeng Mi
Quoted 9 lines

The correct call-stack option for branch stack sampling should be "stack" instead of "call_stack". Correct it.

$perf record -e instructions -j call_stack -- sleep 1 unknown branch filter call_stack, check man page

Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]

Quoted 6 lines
Quoted 6 lines

-j, --branch-filter <branch filter mask>
branch stack filter modes

Fixes 955f6def5590 ("perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index"")

Thanks,
Namhyung

Quoted 19 lines
Quoted 19 lines
---
 tools/perf/Documentation/perf-record.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/Documentation/perf-record.txt +1 -1
index e8b9aadbbfa5..3d19e77c9c53 100644
@@ -454,7 +454,7 @@ following filters are defined:
 	- no_tx: only when the target is not in a hardware transaction
 	- abort_tx: only when the target is a hardware transaction abort
 	- cond: conditional branches
-	- call_stack: save call stack
+	- stack: save call stack
 	- no_flags: don't save branch flags e.g prediction, misprediction etc
 	- no_cycles: don't save branch cycles
 	- hw_index: save branch hardware index

base-commit: cb015814f8b6eebcbb8e46e111d108892c5e6821

author
#3 lore raw
Quoted 18 lines · Namhyung Kim

Hello,

Quoted 3 lines · Dapeng

@Arnaldo, @Kim, @Ian

Kindly ping ...

Sorry for the delay.

Quoted 10 lines · Dapeng Mi
Quoted 9 lines

The correct call-stack option for branch stack sampling should be "stack" instead of "call_stack". Correct it.

$perf record -e instructions -j call_stack -- sleep 1 unknown branch filter call_stack, check man page

Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines

-j, --branch-filter <branch filter mask>
branch stack filter modes

Fixes 955f6def5590 ("perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index"")

Thanks a lot. :)

Quoted 23 lines

Thanks,
Namhyung

Quoted 19 lines
Quoted 19 lines
---
 tools/perf/Documentation/perf-record.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/Documentation/perf-record.txt +1 -1
index e8b9aadbbfa5..3d19e77c9c53 100644
@@ -454,7 +454,7 @@ following filters are defined:
 	- no_tx: only when the target is not in a hardware transaction
 	- abort_tx: only when the target is a hardware transaction abort
 	- cond: conditional branches
-	- call_stack: save call stack
+	- stack: save call stack
 	- no_flags: don't save branch flags e.g prediction, misprediction etc
 	- no_cycles: don't save branch cycles
 	- hw_index: save branch hardware index

base-commit: cb015814f8b6eebcbb8e46e111d108892c5e6821

maintainer Applied
#4 lore raw
In reply to Namhyung Kim
Quoted 8 lines · Namhyung Kim

Hello,

Quoted 3 lines · Dapeng

@Arnaldo, @Kim, @Ian

Kindly ping ...

Sorry for the delay.

Ditto

Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Fixes 955f6def5590 ("perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index"")

Thanks, applied to perf-tools-next,

- Arnaldo