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
141class PerCpu(gdb.Function):141class PerCpu(gdb.Function):
142 """Return per-cpu variable.142 """Return per-cpu variable.
143 143
144$lx_per_cpu("VAR"[, CPU]): Return the per-cpu variable called VAR for the144$lx_per_cpu(VAR[, CPU]): Return the per-cpu variable called VAR for the
145given CPU number. If CPU is omitted, the CPU of the current context is used.145given CPU number. If CPU is omitted, the CPU of the current context is used.
146Note that VAR has to be quoted as string."""146Note that VAR has to be quoted as string."""
147 147
@@ -158,7 +158,7 @@ PerCpu() · 10 unmodified lines
158class PerCpuPtr(gdb.Function):158class PerCpuPtr(gdb.Function):
159 """Return per-cpu pointer.159 """Return per-cpu pointer.
160 160
161$lx_per_cpu_ptr("VAR"[, CPU]): Return the per-cpu pointer called VAR for the161$lx_per_cpu_ptr(VAR[, CPU]): Return the per-cpu pointer called VAR for the
162given CPU number. If CPU is omitted, the CPU of the current context is used.162given CPU number. If CPU is omitted, the CPU of the current context is used.
163Note that VAR has to be quoted as string."""163Note that VAR has to be quoted as string."""
164 164

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