Makes write operation a parameter for tp_memcpy macro
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Tue, 5 Jun 2012 15:16:14 +0000 (11:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 5 Jun 2012 15:16:14 +0000 (11:16 -0400)
commitd9a7cf0364a00f1560ed3d6585bd58553474d9d7
treeefe475d76a9da972566173995a95131c69078307
parente6079b24ef49b9b47e8b10f6917928f76e10d8c9
Makes write operation a parameter for tp_memcpy macro

Memcpy source can be either user-space or kernel-space. To avoid code
duplication, this patch makes the operation a parameter to the macros.
Available macros are thus:

* tp_memcpy:               kernel-space array copy
* tp_memcpy_from_user:     user-space array copy
* tp_memcpy_dyn:           kernel-space sequence copy
* tp_memcpy_dyn_from_user: user-space sequence copy

Those are TP_fast_assign macros that can be used with __dynamic_array
macros in TP_STRUCT__entry in a TRACE_EVENT.

Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-events.h
This page took 0.025913 seconds and 4 git commands to generate.