Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:write() implementation for gcov data files. Reset profiling data for the* corresponding file. If all associated object files have been unloaded,* remove the debug fs node as well.

Proto:static ssize_t gcov_seq_write(struct file *file, const char __user *addr, size_t len, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *addr
size_tlen
loff_t *pos
279  seq = needed for tty driver, and maybe others
280  info = gcov_iter_get_info(private)
281  mutex_lock( & node_lock)
282  node = Find a node by the associated data file name. Needs to be called with* node_lock held.
283  If node Then
285  If num_loaded == 0 Then remove_node(node)
287  Else Reset all profiling data associated with the specified node.
291  gcov_info control.
292  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
294  Return len