函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_total_entries_cpu

函数原型:static void get_total_entries_cpu(struct trace_buffer *buf, unsigned long *total, unsigned long *entries, int cpu)

返回类型:void

参数:

类型参数名称
struct trace_buffer *buf
unsigned long *total
unsigned long *entries
intcpu
3612  count等于g_buffer_entries_cpu - get the number of entries in a cpu buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to get the entries from.
3618  if (({
3618  cpu
3618  ({
3618  循环
3618  const void * __vpp_verify = NULL
3618  当0循环
3618  data
3618  })
3618  })->skipped_entries)
3619  count -= ({
3619  cpu
3619  ({
3619  循环
3619  const void * __vpp_verify = NULL
3619  当0循环
3619  data
3619  })
3619  })->skipped_entries
3621  total等于count
3622  否则total等于countg_buffer_overrun_cpu - get the number of overruns caused by the ring* buffer wrapping around (only if RB_FL_OVERWRITE is on).*@buffer: The ring buffer*@cpu: The per CPU buffer to get the number of overruns from
3625  entries等于count
调用者
名称描述
get_total_entries
trace_total_entries_cpu