From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22623 invoked from network); 1 Nov 2023 22:45:05 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Nov 2023 22:45:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date: Content-Transfer-Encoding:Content-ID:Content-Type:MIME-Version:Subject:To: From:Reply-To:Cc:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=LmCDuCkp8Du7Co5rxEOohXegRiiXZsCqpincSVjKtDk=; b=XBn1DZjusUFJAUqUXAMKqkNbU7 OpUOZ75e8QxsjmTd6mwDrm8IHnAACQTnhmpruEC9qntlUequQU2EdJwYdxG+Bf78XuiDdQbrU1Cbh nqUB28SFOkEbbqa6ZiEhA4+9Wz1Ixka3ygO6wWsNz9ZJqbdiTpXnsUTf3elGDS+drZLIFT+BdEvDL zecd2+VlDznQztINUqAR+E4qMZ1JLmIhhnM/lykaCqp5s4M+gO9ec7xwrTvnhJEV0uqf0VbsSa1JD tOiNNTUqEC43X9OqnMW/iJkG7l4olPbwb0K9gotIc9Xg8p+IjZ+l2HhR/TryDCtp2FI9aOF1kWF0t zP62ifaQ==; Received: by zero.zsh.org with local id 1qyJxR-0003A0-78; Wed, 01 Nov 2023 22:45:05 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qyJx8-0002qy-4X; Wed, 01 Nov 2023 22:44:46 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1qyJx7-000L6Q-6d for zsh-workers@zsh.org; Wed, 01 Nov 2023 23:44:45 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: update strace completion MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <81120.1698878685.1@hydra> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Nov 2023 23:44:45 +0100 Message-ID: <81121-1698878685.202709@TQLu.IfJT.wQf6> X-Seq: 52266 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This updates completion of strace through to version 6.5. Oliver diff --git a/Completion/Linux/Command/_strace b/Completion/Linux/Command/_= strace index b3b6f5096..b1c7e1c8f 100644 --- a/Completion/Linux/Command/_strace +++ b/Completion/Linux/Command/_strace @@ -11,6 +11,7 @@ _arguments -C -s \ \*{-E+,--env=3D}'[set or remove exported environment variable]:variable= :->envars' \ '(:)*'{-p+,--attach=3D}'[attach to the process with specified process I= D and begin tracing]:process ID:_pids' \ "${root}(-u --user)"{-u+,--user=3D}'[run as specified user]:user:_users= ' \ + '--argv0=3D[set argv0 for program]:name' \ '(-b --detach-on)'{-b+,--detach-on=3D}'[detach from process on specifie= d syscall]:syscall:(execve)' \ '(--daemonize)-D[run tracer as detached grandchild, keeping traced proc= ess as direct child of calling process]' \ '(-D)--daemonize=3D-[specify how to run tracer process]::method:(grandc= hild pgroup session)' \ @@ -45,11 +46,14 @@ _arguments -C -s \ '(-v --no-abbrev)'{-v,--no-abbrev}'[print unabbreviated versions of env= ironment, stat, termios, etc. calls]' \ '(-xx --strings-in-hex)-x[print all non-ASCII strings in hexadecimal st= ring format]' \ '(-x --strings-in-hex)-xx[print all strings in hexadecimal string forma= t]' \ - '(-x -xx)--strings-in-hex=3D[specify strings to print in hexadecimal fo= rmat]:string type:(all non-ascii)' \ + '(-x -xx)--strings-in-hex=3D[specify strings to print in hexadecimal fo= rmat]:string type:(all non-ascii non-ascii-chars)' \ '(-X --const-print-style)'{-X+,--const-print-style=3D}'[set the format = for printing of named constants and flags]:format:(raw abbrev verbose)' \ '(-c --summary-only -yy --decode-fds)-y[print paths associated with fil= e descriptor arguments]' \ '(-c --summary-only -y --decode-fds)-yy[print protocol specific informa= tion associated with socket file descriptors]' \ - '(-c --summary-only -y -yy)--decode-fds=3D-[print information associate= d with file descriptors]::information [none]:_sequence compadd - none all = path socket dev pidfd' \ + '(-c --summary-only -y -yy)--decode-fds=3D-[print information associate= d with file descriptors]::information [none]:_sequence compadd - none all = path socket dev pidfd signalfd' \ + '(-c --summary-only -Y)--decode-pids=3D[print information associated wi= th process IDs]:information [none]:_sequence compadd - none comm pidns' \ + '!(-c --summary-only -Y --decode-pids)--pidns-translation' \ + '(-c --summary-only --decode-pids)-Y[print command names for PIDs]' \ '(-c --summary-only -C --summary -i --instruction-pointer -k --stack-tr= aces -r --relative-timestamps -ff -t -tt -ttt --absolute-timestamps -T --s= yscall-times -y -yy --decode-fds)'{-c,--summary-only}'[count time, calls, = and errors for each system call and report a summary]' \ '(-c --summary-only -C --summary)'{-C,--summary}'[count time, calls, an= d errors for each system call and report a summary in addition to regular = output]' \ '(-O --summary-syscall-overhead)'{-O+,--summary-syscall-overhead=3D}'[s= pecify overhead for tracing system calls]:overhead (microseconds)' \ @@ -57,9 +61,11 @@ _arguments -C -s \ '(-U --summary-columns)'{-U+,--summary-columns=3D}'[show specific colum= ns in the summary report]:column:_sequence compadd - time-percent total-ti= me min-time max-time avg-time calls errors name' \ '(-w --summary-wall-clock)'{-w,--summary-wall-clock}'[summarise syscall= latency]' \ '(-c --summary-only -C)-ff[write each process trace to .= (when using -o ]' \ + '--syscall-limit=3D[detach all tracees after tracing given number of sy= scalls]:limit' \ '(-d --debug)'{-d,--debug}'[show debug output of strace itself on stand= ard error]' \ '(- 1 *)'{-h,--help}'[display help information]' \ '--seccomp-bpf[enable seccomp-bpf filtering]' \ + '--tips=3D-[show strace tips, tricks, and tweaks before exit]:tip [id\:= random,format\:compact]' \ '(- 1 *)'{-V,--version}'[display version information]' \ '(-):command name: _command_names -e' \ '*::arguments:_normal' && ret=3D0 @@ -72,6 +78,7 @@ case $state in 'verbose[dereference structures for the specified set of system cal= ls]:system call:_sequence _sys_calls -a -n' \ 'raw[print raw, undecoded arguments for the specified set of system= calls]:system call:_sequence _sys_calls -a -n' \ 'signal[trace only the specified subset of signals]:signal:_sequenc= e _signals -s -M "B\:!=3D"' \ + 'trace-fds[trace operations on listed file descriptors]:file descri= ptor:_sequence _file_descriptors' \ 'read[perform a full hex and ASCII dump of all the data read from l= isted file descriptors]:file descriptor:_sequence _file_descriptors' \ 'write[perform a full hex and ASCII dump of all the data written to= listed file descriptors]:file descriptor:_sequence _file_descriptors' \ 'fault[perform syscall fault injection]:system call:_sys_calls -a -= n' \ @@ -79,7 +86,8 @@ case $state in 'status[trace system calls with given return status]:status:->statu= s' \ 'quiet[suppress various information messages]:message [none]:_seque= nce compadd - none attach exit path-resolution personality thread-execve s= uperseded' \ 'kvm[print the exit reason of kvm vcpu]: :(vcpu)' \ - 'decode-fds[print information associated with file descriptors]:inf= ormation [none]:_sequence compadd - none all path socket dev pidfd' && ret= =3D0 + 'decode-fds[print information associated with file descriptors]:inf= ormation [none]:_sequence compadd - none all path socket dev pidfd signalf= d' \ + 'decode-pids[print information associated with process IDs]:informa= tion [none]:_sequence compadd - none comm pidns' && ret=3D0 if [[ $state =3D status ]]; then _values -s , 'return status [all]' \ all successful failed \