History

scripts/gdb: update documentation for lx_per_cpu

Commit db08c53fdd542bb7f83b ("scripts/gdb: fix parameter handling in $lx_per_cpu") changed the parameter handling of lx_per_cpu to use GdbValue instead of parsing the variable name. Update the documentation to reflect the new lx_per_cpu usage. Update the hrtimer_bases example to use rb_tree instead of the timerqueue_head.next pointer removed in commit 511885d7061eda3eb1fa ("lib/timerqueue: Rely on rbtree semantics for next timer").

Illia Ostapyshyn committed 1 year ago

Commit 09e1d931 parent 6be70454 files · +47 −59Browse files

Showing the changes to scripts (1 of 4 files). Show all

Unified · Split

scripts/gdb/linux/cpus.py+2−2
@@ -141,7 +141,7 @@ LxCpus() · 140 unmodified lines
141141 class PerCpu(gdb.Function):
142142 """Return per-cpu variable.
143143
144−$lx_per_cpu("VAR"[, CPU]): Return the per-cpu variable called VAR for the
144+$lx_per_cpu(VAR[, CPU]): Return the per-cpu variable called VAR for the
145145 given CPU number. If CPU is omitted, the CPU of the current context is used.
146146 Note that VAR has to be quoted as string."""
147147
@@ -158,7 +158,7 @@ PerCpu() · 10 unmodified lines
158158 class PerCpuPtr(gdb.Function):
159159 """Return per-cpu pointer.
160160
161−$lx_per_cpu_ptr("VAR"[, CPU]): Return the per-cpu pointer called VAR for the
161+$lx_per_cpu_ptr(VAR[, CPU]): Return the per-cpu pointer called VAR for the
162162 given CPU number. If CPU is omitted, the CPU of the current context is used.
163163 Note that VAR has to be quoted as string."""
164164

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t