Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:uprobe_buffer_init

Proto:static int uprobe_buffer_init(void)

Type:int

Parameter:Nothing

847  uprobe_cpu_buffer = alloc_percpu(structuprobe_cpu_buffer)
848  If (uprobe_cpu_buffer == NULL) Then Return -ENOMEM
851  for_each_possible_cpu(cpu)
852  p = Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
854  If (p == NULL) Then
855  err_cpu = cpu
856  Go to err
858  ({
858  ({
858  Do
858  const void * __vpp_verify = NULL
858  When 0 cycle
858  })
858  })->buf = page_address(p)
859  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & mutex)
862  Return 0
864  err :
865  for_each_possible_cpu(cpu)
866  If cpu == err_cpu Then Break
868  free_page((unsignedlong)buf)
871  free previously allocated percpu memory
872  Return -ENOMEM
Caller
NameDescribe
uprobe_buffer_enable