Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:35:15
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__perf_event_period

Proto:static void __perf_event_period(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
void *info
5143  value = *info
5146  If freq Then
5147  sample_freq = value
5148  Else
5149  sample_period = value
5150  sample_period = value
5153  active = state == PERF_EVENT_STATE_ACTIVE
5154  If active Then
5155  perf_pmu_disable(pmu)
5160  If interrupts == MAX_INTERRUPTS Then
5161  interrupts = 0
5164  stop(event, update the counter when stopping )
5167  local64_set( & period_left, 0)
5169  If active Then
5170  start(event, load the counter when starting )
5171  perf_pmu_enable(pmu)