From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43464-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 045c1caa for ; Thu, 13 Sep 2018 22:38:42 +0000 (UTC) Received: (qmail 22515 invoked by alias); 13 Sep 2018 22:38:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43464 Received: (qmail 20056 invoked by uid 1010); 13 Sep 2018 22:38:28 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(205.235.26.22):SA:0(-1.6/5.0):. Processed in 2.309082 secs); 13 Sep 2018 22:38:28 -0000 X-Envelope-From: SRS0=8JTF=L3=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1536878297; bh=5h97aNvLkkqTwJndtVQI2rU7yWyrXxH7tpO6RYYrt5I=; h=From:To:Subject:Date:From:Subject; b=Eh0rzkWN9or/GPPD5nLbFIS1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CXY4J2tAXjII7H0QTsflzGoSSdKJPB4Ahu5hJbVIq2qKynOKtFpOYllxkNnu5KaLSzqZvrKZMd 8weRLOIJksj1WLmgTpsaZu3crCo.hnTP.OHZr.Sx_rqGMLvjV3IVAf.d3sxjOBVMC_Ai6RkB6XcP 6yufKCQlCUFYk5iSNvwrHTfCGMQ9xUjqj7g4v6j3239LteXsVDZog82Wu_3QQBUlMzmcCD6iM4JQ eN9lrnN4Cb4PfNOJppnIMt3VcZbhCSGnECKGk From: Oliver Kiddle To: Zsh workers Subject: PATCH: for valgrind completion handle drd options MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27330.1536878286.1@hydra> Date: Fri, 14 Sep 2018 00:38:06 +0200 Message-ID: <27331-1536878286.982446@AGKN.SKBN.e45d> This completes the options for the valgrind drd tool and updates the options for helgrind. Options for other tools likely remain out-of-date but it's thread issues I needed to debug at the moment. Oliver diff --git a/Completion/Linux/Command/_valgrind b/Completion/Linux/Command/_valgrind index 1ae228c94..4187c3cc1 100644 --- a/Completion/Linux/Command/_valgrind +++ b/Completion/Linux/Command/_valgrind @@ -2,10 +2,10 @@ local curcontext="$curcontext" state line local -a cmd common common_{mem_null,read_varinfo} -local -a args args_{addrcheck,memcheck,cachegrind,helgrind,lackey,massif,none} +local -a args args_{addrcheck,drd,memcheck,cachegrind,helgrind,lackey,massif,none} cmd=( - '1:command name:_command_names -e' + '1: : _command_names -e' '*::args :_normal' ) @@ -40,6 +40,31 @@ args_addrcheck=( '--workaround-gcc296-bugs=-:enable:(yes no)' ) +args_drd=( + '--check-stack-var=-[detect data races on stack variables]:enable [no]:(yes no)' + '--exclusive-threshold=-[print an error if any mutex or writer lock is held longer than specified time]:time (ms)' + '--first-race-only=-[report only the first detected data race]:enable [no]:(yes no)' + '--free-is-write=-[report races between accessing memory and freeing memory]:enable [no]:(yes no)' + '--join-list-vol=-[specify how many joined threads to retain memory access information for]:number of threads [10]' + '--report-signal-unlocked=-[report calls to pthread_cond_signal etc where the mutex is not locked]:enable [yes]:(yes no)' + '--segment-merging=-[control segment merging]:enable [yes]:(yes no)' + '--segment-merging-interval=-[perform segment merging only after the specified number of new segments have been created]:number of segments [10]' + '--shared-threshold=-[print an error if a reader lock is held longer than the specified time]:time (ms)' + '--show-confl-seg=-[show conflicting segments in race reports]:enable [yes]:(yes no)' + '--show-stack-usage=-[print stack usage at thread exit time]:enable [no]:(yes no)' + '--ignore-thread-creation=-[control whether all activities during thread creation should be ignored]:enable [no]:(yes no)' + '*--ptrace-addr=-[trace all load and store activity for specified address even after free]:address' + '*--trace-addr=-[trace all load and store activity for specified address]:address' + '--trace-alloc=-[trace all memory allocations and deallocations]:enable [no]:(yes no)' + '--trace-barrier=-[trace all barrier activity]:enable [no]:(yes no)' + '--trace-cond=-[trace all condition variable activity]:enable [no]:(yes no)' + '--trace-fork-join=-[trace all thread creation and all thread termination events]:enable [no]:(yes no)' + '--trace-hb=-[trace execution of the ANNOTATE_HAPPENS_BEFORE(), ANNOTATE_HAPPENS_AFTER() and ANNOTATE_HAPPENS_DONE() client requests]:enable [no]:(yes no)' + '--trace-mutex=-[trace all mutex activity]:enable [no]:(yes no)' + '--trace-rwlock=-[trace all reader-writer lock activity]:enable [no]:(yes no)' + '--trace-semaphore=-[trace all semaphore activity]:enable [no]:(yes no)' +) + args_memcheck=( $args_addrcheck $common_read_varinfo @@ -54,8 +79,16 @@ args_cachegrind=( args_helgrind=( $common $common_read_varinfo - '--private-stacks=-[assume thread stacks are used privately]:enable:(yes no)' - '--show-last-access=-[show location of last word access on error]:locations:(no some all)' + '--free-is-write=-[treat heap frees as writes]:enable [no]:(yes no)' + '--track-lockorders=-[show lock ordering errors]:enable [yes]:(no yes)' + '--history-level=-[specify amount of history to show for data races]:level [full]:(( + full\:show\ both\ stack\ traces\ for\ a\ data\ race\ \(slow\) + approx\:full\ trace\ for\ one\ thread,\ approx\ for\ the\ other\ \(faster\) + none\:only\ show\ trace\ for\ one\ thread\ in\ a\ race\ \(fastest\) + ))' + '--conflict-cache-size=-[specify size of full history cache]:size [2000000]' + '--check-stack-refs=-[race-check reads and writes on the main stack and thread stacks]:enable [yes]:(no yes)' + '--ignore-thread-creation=-[ignore activities during thread creation]:enable [no]:(yes no)' ) args_lackey=( @@ -80,10 +113,10 @@ args_none=( args="args_${${words[(r)--tool=*]#*=}:-memcheck}" _arguments -C ${(P)args} $cmd \ - '--tool=-[specify valgrind tool]:valgrind tool:->tools' \ + '(--version)--tool=-[specify valgrind tool]:valgrind tool:->tools' \ '(-h --help)'{-h,--help}'[show help information]' \ '--help-debug[show help info including debugging options]' \ - '--version[show version]' \ + '(-)--version[show version]' \ '(-q --quiet)'{-q,--quiet}'[run silently; only print error msgs]' \ '(-v --verbose)'{-v,--verbose}'[be more verbose]' \ '--trace-children=-[valgrind-ise child processes]:enable:(yes no)' \ @@ -105,7 +138,7 @@ _arguments -C ${(P)args} $cmd \ '--suppressions=-[suppress errors described in specified file]:file:_files' \ '--gen-suppressions=-[print suppressions for errors detected]:enable:(yes no)' \ '--db-attach=-[start debugger when errors detected]:enable:(yes no)' \ - '--db-command=-[specify command to start debugger]:command:_command_names -e' \ + '--db-command=-[specify command to start debugger]: : _command_names -e' \ '--input-fd=-[specify file descriptor for input]:file descriptor:_file_descriptors' \ '--max-stackframe=-[assume stack switch for SP changes larger than specified number of bytes]:bytes' \ && return