{"push_id":736802073,"size":1,"distinct_size":1,"ref":"refs/heads/0724","head":"7bcbf6661dbbe7a401b2e03f9c67955336508b3c","before":"7d8ed164dac1d7f2aecb993060428feff545be3c","commits":[{"sha":"7bcbf6661dbbe7a401b2e03f9c67955336508b3c","author":{"email":"546b05909706652891a87f7bfe385ae147f61f91@kernel.org","name":"Tejun Heo"},"message":"dump_stack: unify debug information printed by show_regs()\n\nshow_regs() is inherently arch-dependent but it does make sense to print\ngeneric debug information and some archs already do albeit in slightly\ndifferent forms.  This patch introduces a generic function to print debug\ninformation from show_regs() so that different archs print out the same\ninformation and it's much easier to modify what's printed.\n\nshow_regs_print_info() prints out the same debug info as dump_stack()\ndoes plus task and thread_info pointers.\n\n* Archs which didn't print debug info now do.\n\n  alpha, arc, blackfin, c6x, cris, frv, h8300, hexagon, ia64, m32r,\n  metag, microblaze, mn10300, openrisc, parisc, score, sh64, sparc,\n  um, xtensa\n\n* Already prints debug info.  Replaced with show_regs_print_info().\n  The printed information is superset of what used to be there.\n\n  arm, arm64, avr32, mips, powerpc, sh32, tile, unicore32, x86\n\n* s390 is special in that it used to print arch-specific information\n  along with generic debug info.  Heiko and Martin think that the\n  arch-specific extra isn't worth keeping s390 specfic implementation.\n  Converted to use the generic version.\n\nNote that now all archs print the debug info before actual register\ndumps.\n\nAn example BUG() dump follows.\n\n kernel BUG at /work/os/work/kernel/workqueue.c:4841!\n invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC\n Modules linked in:\n CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.9.0-rc1-work+ #7\n Hardware name: empty empty/S3992, BIOS 080011  10/26/2007\n task: ffff88007c85e040 ti: ffff88007c860000 task.ti: ffff88007c860000\n RIP: 0010:[<ffffffff8234a07e>]  [<ffffffff8234a07e>] init_workqueues+0x4/0x6\n RSP: 0000:ffff88007c861ec8  EFLAGS: 00010246\n RAX: ffff88007c861fd8 RBX: ffffffff824466a8 RCX: 0000000000000001\n RDX: 0000000000000046 RSI: 0000000000000001 RDI: ffffffff8234a07a\n RBP: ffff88007c861ec8 R08: 0000000000000000 R09: 0000000000000000\n R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8234a07a\n R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000\n FS:  0000000000000000(0000) GS:ffff88007dc00000(0000) knlGS:0000000000000000\n CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b\n CR2: ffff88015f7ff000 CR3: 00000000021f1000 CR4: 00000000000007f0\n DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000\n DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400\n Stack:\n  ffff88007c861ef8 ffffffff81000312 ffffffff824466a8 ffff88007c85e650\n  0000000000000003 0000000000000000 ffff88007c861f38 ffffffff82335e5d\n  ffff88007c862080 ffffffff8223d8c0 ffff88007c862080 ffffffff81c47760\n Call Trace:\n  [<ffffffff81000312>] do_one_initcall+0x122/0x170\n  [<ffffffff82335e5d>] kernel_init_freeable+0x9b/0x1c8\n  [<ffffffff81c47760>] ? rest_init+0x140/0x140\n  [<ffffffff81c4776e>] kernel_init+0xe/0xf0\n  [<ffffffff81c6be9c>] ret_from_fork+0x7c/0xb0\n  [<ffffffff81c47760>] ? rest_init+0x140/0x140\n  ...\n\nv2: Typo fix in x86-32.\n\nv3: CPU number dropped from show_regs_print_info() as\n    dump_stack_print_info() has been updated to print it.  s390\n    specific implementation dropped as requested by s390 maintainers.\n\nSigned-off-by: Tejun Heo <tj@kernel.org>\nAcked-by: David S. Miller <davem@davemloft.net>\nAcked-by: Jesper Nilsson <jesper.nilsson@axis.com>\nCc: Heiko Carstens <heiko.carstens@de.ibm.com>\nCc: Martin Schwidefsky <schwidefsky@de.ibm.com>\nCc: Bjorn Helgaas <bhelgaas@google.com>\nCc: Fengguang Wu <fengguang.wu@intel.com>\nCc: Mike Frysinger <vapier@gentoo.org>\nCc: Vineet Gupta <vgupta@synopsys.com>\nCc: Sam Ravnborg <sam@ravnborg.org>\nAcked-by: Chris Metcalf <cmetcalf@tilera.com>\t\t[tile bits]\nAcked-by: Richard Kuo <rkuo@codeaurora.org>\t\t[hexagon bits]\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\nConflicts:\n\tinclude/linux/printk.h\n\tkernel/printk.c","distinct":true,"url":"https://api.github.com/repos/mostafa-z/GABRIEL_LP/commits/7bcbf6661dbbe7a401b2e03f9c67955336508b3c"}]}