Home
last modified time | relevance | path

Searched refs:var_ptr (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/scripts/gdb/linux/
H A Dcpus.py39 def per_cpu(var_ptr, cpu): argument
52 pointer = var_ptr.cast(utils.get_long_type()) + offset
53 return pointer.cast(var_ptr.type).dereference()
156 var_ptr = gdb.parse_and_eval("&" + var_name.string())
157 return per_cpu(var_ptr, cpu)
169 var_ptr = gdb.parse_and_eval("(struct task_struct *)cpu_tasks[0].task")
170 return var_ptr.dereference()
172 var_ptr = gdb.parse_and_eval("&pcpu_hot.current_task")
173 return per_cpu(var_ptr, cpu).dereference()