Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:action_create

Proto:static int action_create(struct hist_trigger_data *hist_data, struct action_data *data)

Type:int

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
struct action_data *data
4351  file = event_file
4352  tr = tr
4357  ret = 0
4359  If action == ACTION_TRACE Then Return trace_action_create(hist_data, data)
4362  If action == ACTION_SNAPSHOT Then
4363  track_data = track_data_alloc(key_size, data, hist_data)
4364  If IS_ERR(track_data) Then
4365  ret = PTR_ERR(track_data)
4366  Go to out
4369  ret = tracing_snapshot_cond_enable(tr, track_data, cond_snapshot_update)
4371  If ret Then track_data_free(track_data)
4374  Go to out
4377  If action == ACTION_SAVE Then
4378  If n_save_vars Then
4379  ret = -EEXIST
4381  Go to out
4384  When i < n_params cycle
4386  If Not param Then
4387  ret = -ENOMEM
4388  Go to out
4392  If IS_ERR(field_var) Then
4403  kfree(param)
4406  out :
4407  Return ret
Caller
NameDescribe
track_data_create
onmatch_create