Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:graph_trace_open

Proto:void graph_trace_open(struct trace_iterator *iter)

Type:void

Parameter:

TypeParameterName
struct trace_iterator *iter
1207  private = NULL
1210  gfpflags = If Are we running in atomic context? WARNING: this macro cannot* always detect atomic context; in particular, it cannot know about* held spinlocks in non-preemptible kernels. Thus it should not be() || Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.() Then DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear Else GFP_KERNEL
1212  data = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1213  If Not data Then Go to out_err
1216  cpu_data = alloc_percpu_gfp(structfgraph_cpu_data, gfpflags)
1217  If Not cpu_data Then Go to out_err_free
1220  for_each_possible_cpu(cpu)
1221  pid_t * pid = & (({
1221  ({
1221  Do
1221  const void * __vpp_verify = NULL
1221  When 0 cycle
1221  cpu_data
1221  })
1221  })->last_pid)
1222  int * depth = & (({
1222  ({
1222  Do
1222  const void * __vpp_verify = NULL
1222  When 0 cycle
1222  cpu_data
1222  })
1222  })->depth)
1223  int * ignore = & (({
1223  ({
1223  Do
1223  const void * __vpp_verify = NULL
1223  When 0 cycle
1223  cpu_data
1223  })
1223  })->ignore)
1224  int * depth_irq = & (({
1224  ({
1224  Do
1224  const void * __vpp_verify = NULL
1224  When 0 cycle
1224  cpu_data
1224  })
1224  })->depth_irq)
1226  pid = -1
1227  depth = 0
1228  ignore = 0
1229  depth_irq = -1
1232  private = data
1234  Return
1236  out_err_free :
1237  kfree(data)
1238  out_err :
1239  pr_warn("function graph tracer: not enough memory\n")