Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ring_buffer_producer_thread

Proto:static int ring_buffer_producer_thread(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
403  When Not break_test() cycle
404  g_buffer_reset - reset a ring buffer*@buffer: The ring buffer to reset all cpu buffers
406  If consumer Then
411  ring_buffer_producer()
412  If break_test() Then Go to out_kill
415  trace_printk("Sleeping for 10 secs\n")
416  set_current_state(TASK_INTERRUPTIBLE)
417  If break_test() Then Go to out_kill
419  schedule_timeout - sleep until timeout*@timeout: timeout value in jiffies* Make the current task sleep until @timeout jiffies have* elapsed
422  out_kill :
423  set_current_state() includes a barrier so that the write of current->state* is correctly serialised wrt the caller's subsequent test of whether to* actually sleep:* for (;;) {* set_current_state(TASK_UNINTERRUPTIBLE);* if (!need_sleep)* break;* (Used in tsk->state: )
424  If Not kthread_should_stop - should this kthread return now?* When someone calls kthread_stop() on your kthread, it will be woken* and this will return true. You should then return, and your return* value will be passed through to kthread_stop(). Then wait_to_die()
427  Return 0