Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-28 08:14:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pseudo_lock_measure_trigger

Proto:static ssize_t pseudo_lock_measure_trigger(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *user_buf
size_tcount
loff_t *ppos
1222  rdtgrp = needed for tty driver, and maybe others
1228  buf_size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(count, ( size of buf - 1))
1229  If copy_from_user(buf, user_buf, buf_size) Then Return -EFAULT
1232  buf[buf_size] = '\0'
1233  ret = kstrtoint - convert a string to an int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.
1234  If ret == 0 Then
1235  If sel != 1 && sel != 2 && sel != 3 Then Return -EINVAL
1237  ret = debugfs_file_get(dentry)
1238  If ret Then Return ret
1240  ret = pseudo_lock_measure_cycles - Trigger latency measure to pseudo-locked region* The measurement of latency to access a pseudo-locked region should be* done from a cpu that is associated with that pseudo-locked region
1241  If ret == 0 Then ret = count
1243  debugfs_file_put(dentry)
1246  Return ret