Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_total_entries_cpu

Proto:static void get_total_entries_cpu(struct trace_buffer *buf, unsigned long *total, unsigned long *entries, int cpu)

Type:void

Parameter:

TypeParameterName
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  Do
3618  const void * __vpp_verify = NULL
3618  When 0 cycle
3618  data
3618  })
3618  })->skipped_entries)
3619  count -= ({
3619  cpu
3619  ({
3619  Do
3619  const void * __vpp_verify = NULL
3619  When 0 cycle
3619  data
3619  })
3619  })->skipped_entries
3621  total = count
3622  Else total = count + g_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
Caller
NameDescribe
get_total_entries
trace_total_entries_cpu