函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_uprobe.c Create Date:2022-07-27 13:56:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:uprobe_buffer_init

函数原型:static int uprobe_buffer_init(void)

返回类型:int

参数:

847  uprobe_cpu_buffer = alloc_percpu(structuprobe_cpu_buffer)
848  如果(uprobe_cpu_buffer == NULL)则返回:负ENOMEM
851  遍历可用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  如果(p == NULL)则
855  err_cpu等于cpu
856  转到:err
858  ({
858  ({
858  循环
858  const void * __vpp_verify = NULL
858  当0循环
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  返回:0
864  err :
865  遍历可用CPU(cpu)
866  如果cpu恒等于err_cpu退出
868  free_page((unsignedlong)buf)
871  释放内存
872  返回:负ENOMEM
调用者
名称描述
uprobe_buffer_enable