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

Side by Side Diff: crash_reporter_logs.conf

Issue 6722017: crash-reporter: Don't send ps command lines with crash reporter (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crash-reporter.git@master
Patch Set: Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can 2 # Use of this source code is governed by a BSD-style license that can
3 # be found in the LICENSE file. 3 # be found in the LICENSE file.
4 4
5 # This file has the format: 5 # This file has the format:
6 # <basename>:<shell command>\n 6 # <basename>:<shell command>\n
7 # 7 #
8 # Where when any executable with the basename <basename> crashes, the 8 # Where when any executable with the basename <basename> crashes, the
9 # given <shell command> is executed and its standard output and 9 # given <shell command> is executed and its standard output and
10 # standard error is sent along with the crash report. 10 # standard error is sent along with the crash report.
11 # 11 #
12 # Use caution in modifying this file. Only run common unix commands 12 # Use caution in modifying this file. Only run common unix commands
13 # here as these commands will be run when a crash has recently 13 # here as these commands will be run when a crash has recently
14 # occurred and we should avoid running anything that might cause 14 # occurred and we should avoid running anything that might cause
15 # another crash. Similarly these command block the notification of 15 # another crash. Similarly these command block the notification of
16 # the crash to parent processes, so commands should execute quickly. 16 # the crash to parent processes, so commands should execute quickly.
17 # 17 #
18 update_engine:cat $(ls -1tr /var/log/update_engine | tail -5 | sed s.^./var/log/ update_engine/.) | tail -c 50000 18 update_engine:cat $(ls -1tr /var/log/update_engine | tail -5 | sed s.^./var/log/ update_engine/.) | tail -c 50000
19 19
20 # The following rule is used for generating additional diagnostics when 20 # The following rule is used for generating additional diagnostics when
21 # collection of user crashes fails. This output should not be too large 21 # collection of user crashes fails. This output should not be too large
22 # as it is stored in memory. 22 # as it is stored in memory. The output format specified for 'ps' is the
23 crash_reporter-user-collection:echo "===ps output==="; ps auxw | tail -c 25000; echo "===dmesg output==="; dmesg | tail -c 25000; echo "===meminfo==="; cat /pro c/meminfo 23 # same as with the "u" ("user-oriented") option, except it doesn't show
kmixter1 2011/03/24 22:35:53 can't tell by the diff but are there a bunch of tr
24 # the commands' arguments (i.e. "comm" instead of "command").
25 crash_reporter-user-collection:echo "===ps output==="; ps axw -o user,pid,%cpu,% mem,vsz,rss,tname,stat,start_time,bsdtime,comm | tail -c 25000; echo "===dmesg o utput==="; dmesg | tail -c 25000; echo "===meminfo==="; cat /proc/meminfo
24 26
25 # The following rules are only for testing purposes. 27 # The following rules are only for testing purposes.
26 crash_log_test:echo hello world 28 crash_log_test:echo hello world
27 crash_log_recursion_test:sleep 1 && /usr/local/autotest/tests/crash_log_recursio n_test 29 crash_log_recursion_test:sleep 1 && /usr/local/autotest/tests/crash_log_recursio n_test
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698