Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: tools/generate_dump.ad

Issue 727983002: Add the generate_dump tool (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@task_for_pid
Patch Set: Rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/generate_dump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 :doctype: manpage
16
17 = generate_dump(1)
18
19 == Name
20
21 generate_dump - Generate a minidump file containing a snapshot of a running
22 process
23
24 == Synopsis
25
26 [verse]
27 *generate_dump* ['OPTION…'] 'PID'
28
29 == Description
30
31 Generates a minidump file containing a snapshot of a running process whose
32 process identifier is 'PID'. By default, the target process will be suspended
33 while the minidump is generated, and the minidump file will be written to
34 +minidump.PID+. After the minidump file is generated, the target process resumes
35 running.
36
37 The minidump file will contain information about the process, its threads, its
38 modules, and the system. It will not contain any exception information because
39 it will be generated from a live running process, not as a result of an
40 exception occurring.
41
42 This program uses +task_for_pid()+ to access the process’ task port. This
43 operation may be restricted to use by the superuser or processes permitted by
44 taskgated(8). Consequently, this program must normally be invoked by root. It is
45 possible to install this program as a setuid root executable to overcome this
46 limitation.
47
48 This program is similar to the gcore(1) program available on some operating
49 systems.
50
51 == Options
52
53 *-r*, *--no_suspend*::
54 The target process will continue running while the minidump file is generated.
55 Normally, the target process is suspended during this operation, which
56 guarantees that the minidump file will contain an atomic snapshot of the
57 process.
58 +
59 This option may be useful when attempting to generate a minidump from a process
60 that dump generation has an interprocess dependency on, such as a system server
61 like launchd(8) or opendirectoryd(8). Deadlock could occur if any portion of the
62 dump generation operation blocks while waiting for a response from one of these
63 servers while they are suspended.
64
65 *-o*, *--output*='FILE'::
66 The minidump will be written to 'FILE' instead of +minidump.PID+.
67
68 *--help*::
69 Display help and exit.
70
71 *--version*::
72 Output version information and exit.
73
74 == Examples
75
76 Generate a minidump file in +/tmp/minidump+ containing a snapshot of the process
77 with PID 1234.
78 [subs="quotes"]
79 ----
80 $ *generate_dump --output=/tmp/minidump 1234*
81 ----
82
83 == Exit Status
84
85 *0*::
86 Success.
87
88 *1*::
89 Failure, with a message printed to the standard error stream.
90
91 == See Also
92
93 catch_exception_tool(1)
94
95 include::man_footer.ad[]
OLDNEW
« no previous file with comments | « no previous file | tools/generate_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698