![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package crash for openSUSE:Factory checked in at 2013-01-29 12:05:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/crash (Old)
and /work/SRC/openSUSE:Factory/.crash.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "crash", Maintainer is "PTesarik@suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/crash/crash.changes 2012-07-31 13:57:15.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-01-29 12:05:40.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Jan 25 20:33:38 UTC 2013 - tabraham@suse.com
+
+- crash-var_length_log_rec.patch: support variable-length record
+ kernel log buffer present in kernel 3.5 and later (bnc#796151).
+
+-------------------------------------------------------------------
New:
----
crash-var_length_log_rec.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ crash.spec ++++++
--- /var/tmp/diff_new_pack.n5a716/_old 2013-01-29 12:05:42.000000000 +0100
+++ /var/tmp/diff_new_pack.n5a716/_new 2013-01-29 12:05:42.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package crash
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -59,6 +59,7 @@
Patch9: %{name}-debuginfo-compressed.patch
Patch10: %{name}_enable_lzo_support.patch
Patch11: %{name}-siginfo.patch
+Patch12: %{name}-var_length_log_rec.patch
Patch90: %{name}-sial-ps-2.6.29.diff
BuildRequires: bison
BuildRequires: flex
@@ -217,6 +218,7 @@
%patch9 -p1
%patch10 -p1
%patch11 -p1
+%patch12 -p1
## SIAL patches
cd sial-scripts-%{scripts_version}
%patch90 -p1
++++++ crash-var_length_log_rec.patch ++++++
diff -ur crash-6.0.7.orig/defs.h crash-6.0.7/defs.h
--- crash-6.0.7.orig/defs.h 2012-12-31 10:40:27.997859461 -0500
+++ crash-6.0.7/defs.h 2012-12-31 12:35:19.693388207 -0500
@@ -1759,6 +1759,11 @@
long msg_queue_q_qnum;
long super_block_s_fs_info;
long rq_timestamp;
+ long log_ts_nsec;
+ long log_len;
+ long log_text_len;
+ long log_dict_len;
+ long log_level;
};
struct size_table { /* stash of commonly-used sizes */
@@ -1891,6 +1896,7 @@
long shmid_kernel;
long sem_array;
long msg_queue;
+ long log;
};
struct array_table {
@@ -4328,6 +4334,9 @@
void dump_kernel_table(int);
void dump_bt_info(struct bt_info *, char *where);
void dump_log(int);
+#define SHOW_LOG_LEVEL (0x1)
+#define SHOW_LOG_DICT (0x2)
+#define SHOW_LOG_TEXT (0x4)
void set_cpu(int);
void clear_machdep_cache(void);
struct stack_hook *gather_text_list(struct bt_info *);
diff -ur crash-6.0.7.orig/help.c crash-6.0.7/help.c
--- crash-6.0.7.orig/help.c 2012-05-30 14:25:37.000000000 -0400
+++ crash-6.0.7/help.c 2012-12-31 11:00:00.022779319 -0500
@@ -2921,10 +2921,18 @@
char *help_log[] = {
"log",
"dump system message buffer",
-"[-m]",
-" This command dumps the kernel log_buf contents in chronological order.",
+"[-tdm]",
+" This command dumps the kernel log_buf contents in chronological order. The",
+" command supports the older log_buf formats, which may or may not contain a",
+" timestamp inserted prior to each message, as well as the newer variable-length",
+" record format, where the timestamp is contained in each log entry's header.",
" ",
-" -m Display the message log level preceding each message.",
+" -t Display the message text without the timestamp; only applicable to the",
+" variable-length record format.",
+" -d Display the dictionary of key/value pair properties that are optionally",
+" appended to a message by the kernel's dev_printk() function; only",
+" applicable to the variable-length record format.",
+" -m Display the message log level in brackets preceding each message.",
"\nEXAMPLES",
" Dump the kernel message buffer:\n",
" %s> log",
@@ -2973,6 +2981,49 @@
" <6>Installing knfsd (copyright (C) 1996 okir@monad.swb.de).",
" <7>nfsd_init: initialized fhcache, entries=256",
" ... ",
+" ",
+" On a system with the variable-length record format, and whose log_buf has been",
+" filled and wrapped around, display the log with timestamp data:\n",
+" %s> log",
+" [ 0.467730] pci 0000:ff:02.0: [8086:2c10] type 00 class 0x060000",
+" [ 0.467749] pci 0000:ff:02.1: [8086:2c11] type 00 class 0x060000",
+" [ 0.467769] pci 0000:ff:02.4: [8086:2c14] type 00 class 0x060000",
+" [ 0.467788] pci 0000:ff:02.5: [8086:2c15] type 00 class 0x060000",
+" [ 0.467809] pci 0000:ff:03.0: [8086:2c18] type 00 class 0x060000",
+" [ 0.467828] pci 0000:ff:03.1: [8086:2c19] type 00 class 0x060000",
+" ...",
+" ",
+" Display the same message text as above, without the timestamp data:\n",
+" %s> log -t",
+" pci 0000:ff:02.0: [8086:2c10] type 00 class 0x060000",
+" pci 0000:ff:02.1: [8086:2c11] type 00 class 0x060000",
+" pci 0000:ff:02.4: [8086:2c14] type 00 class 0x060000",
+" pci 0000:ff:02.5: [8086:2c15] type 00 class 0x060000",
+" pci 0000:ff:03.0: [8086:2c18] type 00 class 0x060000",
+" pci 0000:ff:03.1: [8086:2c19] type 00 class 0x060000",
+" ...",
+" ",
+" Display the same message text as above, with appended dictionary data:\n",
+" %s> log -td",
+" pci 0000:ff:02.0: [8086:2c10] type 00 class 0x060000",
+" SUBSYSTEM=pci",
+" DEVICE=+pci:0000:ff:02.0",
+" pci 0000:ff:02.1: [8086:2c11] type 00 class 0x060000",
+" SUBSYSTEM=pci",
+" DEVICE=+pci:0000:ff:02.1",
+" pci 0000:ff:02.4: [8086:2c14] type 00 class 0x060000",
+" SUBSYSTEM=pci",
+" DEVICE=+pci:0000:ff:02.4",
+" pci 0000:ff:02.5: [8086:2c15] type 00 class 0x060000",
+" SUBSYSTEM=pci",
+" DEVICE=+pci:0000:ff:02.5",
+" pci 0000:ff:03.0: [8086:2c18] type 00 class 0x060000",
+" SUBSYSTEM=pci",
+" DEVICE=+pci:0000:ff:03.0",
+" pci 0000:ff:03.1: [8086:2c19] type 00 class 0x060000",
+" SUBSYSTEM=pci",
+" DEVICE=+pci:0000:ff:03.1",
+" ...",
NULL
};
diff -ur crash-6.0.7.orig/kernel.c crash-6.0.7/kernel.c
--- crash-6.0.7.orig/kernel.c 2012-12-31 10:40:27.999859463 -0500
+++ crash-6.0.7/kernel.c 2012-12-31 12:18:24.621457616 -0500
@@ -19,6 +19,7 @@
#include "xen_hyper_defs.h"
#include