Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__trace_find_cmdline

Proto:static void __trace_find_cmdline(int pid, char comm[])

Type:void

Parameter:

TypeParameterName
intpid
charcomm
2275  If Not pid Then
2276  strcpy(comm, "<idle>")
2277  Return
2280  If WARN_ON_ONCE(pid < 0) Then
2281  strcpy(comm, "<XXX>")
2282  Return
2285  If pid > This controls the default maximum pid allocated to a process Then
2286  strcpy(comm, "<...>")
2287  Return
2290  map = map_pid_to_cmdline[pid]
2291  If map != NO_CMDLINE_MAP Then Copy a NUL terminated string into a sized buffer
2293  Else strcpy(comm, "<...>")
Caller
NameDescribe
trace_find_cmdline
saved_cmdlines_show