Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-28 12:02:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_set_time_stamp_abs

Proto:int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
boolabs
6736  ret = 0
6738  mutex_lock( & race_types_lock is used to protect the trace_types list.)
6740  If abs && time_stamp_abs_ref++ Then Go to out
6743  If Not abs Then
6744  If WARN_ON_ONCE(!time_stamp_abs_ref) Then
6745  ret = -EINVAL
6746  Go to out
6749  If --time_stamp_abs_ref Then Go to out
6753  ring_buffer_set_time_stamp_abs(buffer, abs)
6759  out :
6760  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
6762  Return ret
Caller
NameDescribe
hist_register_trigger
hist_unregister_trigger
hist_unreg_all