Lines Matching +full:- +full:70

1 .. SPDX-License-Identifier: GPL-2.0
4 Fprobe-based Event Tracing
10 --------
18 tracepoint argument, or the tracepoint without trace-event, which is
24 Synopsis of fprobe-events
25 -------------------------
47 @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol)
53 +|-[u]OFFS(FETCHARG) : Fetch memory at FETCHARG +|- OFFS address.(\*4)(\*5)
69 (\*5) "u" means user-space dereference.
74 --------------------------
82 -------------
96 print-format as below ::
111 print fmt: "(%lx) count=%Lu pos=0x%Lx", REC->__probe_ip, REC->count, REC->pos
124 You can access the data fields of a data structure using allow operator ``->``
127 # echo 't sched_switch preempt prev_pid=prev->pid next_pid=next->pid' >> dynamic_events
129 The field access operators, ``->`` and ``.`` can be combined for accessing deeper
130 members and other structure members pointed by the member. e.g. ``foo->bar.baz->qux``
131 If there is non-name union member, you can directly access it as the C code does.
141 To access ``a`` and ``b``, use ``foo->a`` and ``foo->b`` in this case.
144 e.g. ``$retval->name``.
154 # echo 't sched_switch prev->comm:string' >> dynamic_events
155 # echo 'f getname_flags%return $retval->name:string' >> dynamic_events
157 The ``prev->comm`` is an embedded char array in the data structure, and
158 ``$retval->name`` is a char pointer in the data structure. But in both
163 --------------
174 # head -n 20 trace | tail
175 # TASK-PID CPU# ||||| TIMESTAMP FUNCTION
177 …sh-70 [000] ...1. 335.883195: vfs_read__entry: (vfs_read+0x4/0x340) file=0xffff888005cf9a80…
178 … sh-70 [000] ..... 335.883208: vfs_read__exit: (ksys_read+0x75/0x100 <- vfs_read) arg1=1
179 …sh-70 [000] ...1. 335.883220: vfs_read__entry: (vfs_read+0x4/0x340) file=0xffff888005cf9a80…
180 … sh-70 [000] ..... 335.883224: vfs_read__exit: (ksys_read+0x75/0x100 <- vfs_read) arg1=1
181 …sh-70 [000] ...1. 335.883232: vfs_read__entry: (vfs_read+0x4/0x340) file=0xffff888005cf9a80…
182 … sh-70 [000] ..... 335.883237: vfs_read__exit: (ksys_read+0x75/0x100 <- vfs_read) arg1=1
183 …sh-70 [000] ...1. 336.050329: vfs_read__entry: (vfs_read+0x4/0x340) file=0xffff888005cf9a80…
184 … sh-70 [000] ..... 336.050343: vfs_read__exit: (ksys_read+0x75/0x100 <- vfs_read) arg1=1
196 # head -n 20 trace | tail
197 # TASK-PID CPU# ||||| TIMESTAMP FUNCTION
199 …sh-70 [000] d..2. 3912.083993: sched_switch: prev_comm=sh prev_pid=70 prev_prio=120 prev_sta…
200 …sh-70 [000] d..3. 3912.083995: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt=0 p…
201 …<idle>-0 [000] d..2. 3912.084183: sched_switch: prev_comm=swapper/0 prev_pid=0 prev_prio=12…
202 …<idle>-0 [000] d..3. 3912.084184: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt…
203 …rcu_preempt-16 [000] d..2. 3912.084196: sched_switch: prev_comm=rcu_preempt prev_pid=16 prev…
204 …rcu_preempt-16 [000] d..3. 3912.084196: sched_switch: (__probestub_sched_switch+0x4/0x10) pr…
205 …<idle>-0 [000] d..2. 3912.085191: sched_switch: prev_comm=swapper/0 prev_pid=0 prev_prio=12…
206 …<idle>-0 [000] d..3. 3912.085191: sched_switch: (__probestub_sched_switch+0x4/0x10) preempt…
208 As you can see, the ``sched_switch`` trace-event shows *cooked* parameters, on
217 # echo 't sched_switch comm=next->comm:string next->start_time' > dynamic_events
218 # head -n 20 trace | tail
219 # TASK-PID CPU# ||||| TIMESTAMP FUNCTION
221 …sh-70 [000] d..3. 5606.686577: sched_switch: (__probestub_sched_switch+0x4/0x10) comm="rcu_p…
222 …rcu_preempt-16 [000] d..3. 5606.686602: sched_switch: (__probestub_sched_switch+0x4/0x10) co…
223 …sh-70 [000] d..3. 5606.686637: sched_switch: (__probestub_sched_switch+0x4/0x10) comm="swapp…
224 …<idle>-0 [000] d..3. 5606.687190: sched_switch: (__probestub_sched_switch+0x4/0x10) comm="r…
225 …rcu_preempt-16 [000] d..3. 5606.687202: sched_switch: (__probestub_sched_switch+0x4/0x10) co…
226 …<idle>-0 [000] d..3. 5606.690317: sched_switch: (__probestub_sched_switch+0x4/0x10) comm="k…
227 …kworker/0:1-14 [000] d..3. 5606.690339: sched_switch: (__probestub_sched_switch+0x4/0x10) co…
228 …<idle>-0 [000] d..3. 5606.692368: sched_switch: (__probestub_sched_switch+0x4/0x10) comm="k…
234 structure-initialization function.
240 # echo 'f vfs_open mode=file->f_mode:x32 inode=file->f_inode:x64' >> dynamic_events
241 # echo 'f vfs_open%%return mode=file->f_mode:x32 inode=file->f_inode:x64' >> dynamic_events
244 … sh-131 [006] ...1. 1945.714346: vfs_open__entry: (vfs_open+0x4/0x40) mode=0x2 inode=0x0
245 …sh-131 [006] ...1. 1945.714358: vfs_open__exit: (do_open+0x274/0x3d0 <- vfs_open) mode=0x4d80…
246 … cat-143 [007] ...1. 1945.717949: vfs_open__entry: (vfs_open+0x4/0x40) mode=0x1 inode=0x0
247 …cat-143 [007] ...1. 1945.717956: vfs_open__exit: (do_open+0x274/0x3d0 <- vfs_open) mode=0x4a8…
248 … cat-143 [007] ...1. 1945.720616: vfs_open__entry: (vfs_open+0x4/0x40) mode=0x1 inode=0x0
249 …cat-143 [007] ...1. 1945.728263: vfs_open__exit: (do_open+0x274/0x3d0 <- vfs_open) mode=0xa80…