From bc2d7dde163e0a2bbb7a122053620a4bddcd0411 Mon Sep 17 00:00:00 2001 From: Michael Krebs Date: Wed, 12 Sep 2012 20:31:20 -0700 Subject: [PATCH] crash-reporter: Don't send dmesg output with internal crash_reporter reports Seeing as kernel crashes no longer include dmesg output, we probably shouldn't either. This is for crash reports with signature "crash_reporter-user-collection". BUG=chromium-os:34389 TEST=Ran logging_UserCrash autotest CQ-DEPEND=I813a711c3557227cc17a58be8f960bfe569722bc Change-Id: I52debf6d8ad32132d3b64c7f313f306b26287dd1 Reviewed-on: https://gerrit.chromium.org/gerrit/33167 Tested-by: Michael Krebs Reviewed-by: Ben Chan Commit-Ready: Michael Krebs --- crash_reporter/crash_reporter_logs.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash_reporter/crash_reporter_logs.conf b/crash_reporter/crash_reporter_logs.conf index 5650346ba..c70b2c13d 100644 --- a/crash_reporter/crash_reporter_logs.conf +++ b/crash_reporter/crash_reporter_logs.conf @@ -25,7 +25,7 @@ cros_installer:cat $(ls -1tr /var/log/update_engine | tail -5 | sed s.^./var/log # as it is stored in memory. The output format specified for 'ps' is the # same as with the "u" ("user-oriented") option, except it doesn't show # the commands' arguments (i.e. "comm" instead of "command"). -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 output==="; dmesg | tail -c 25000; echo "===meminfo==="; cat /proc/meminfo +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 "===meminfo==="; cat /proc/meminfo # This rule is similar to the crash_reporter-user-collection rule, except it is # run for kernel errors reported through udev events.