diff for duplicates of <20130129135109.GF14302@pd.tnic> diff --git a/a/1.txt b/N1/1.txt index 7d1ca98..735a15c 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -57,9 +57,9 @@ Processor"? .. hahaha.. > +MAX_CPUS = 4096 > + > +def get_current_cpu(): -> + if get_gdbserver_type() = GDBSERVER_QEMU: +> + if get_gdbserver_type() == GDBSERVER_QEMU: > + return gdb.selected_thread().num - 1 -> + elif get_gdbserver_type() = GDBSERVER_KGDB: +> + elif get_gdbserver_type() == GDBSERVER_KGDB: > + tid = gdb.selected_thread().ptid[2] > + if tid > (0x100000000 - MAX_CPUS - 2): > + return 0x100000000 - tid - 2 @@ -70,7 +70,7 @@ Processor"? .. hahaha.. > + "not yet supported with this gdb server.") > + > +def per_cpu(var_ptr, cpu): -> + if cpu = -1: +> + if cpu == -1: > + cpu = get_current_cpu() > + if is_target_arch("sparc:v9"): > + offset = gdb.parse_and_eval("trap_block[" + str(cpu) + diff --git a/a/content_digest b/N1/content_digest index fa60b12..323a4e9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\004960fa208fbd9c0962eb4f70aa45d28aec59e8d.1359463075.git.jan.kiszka@siemens.com\0" "From\0Borislav Petkov <bp@alien8.de>\0" "Subject\0Re: [PATCH v5 16/20] scripts/gdb: Add internal helper and convenience function for per-cpu lookup\0" - "Date\0Tue, 29 Jan 2013 13:51:09 +0000\0" + "Date\0Tue, 29 Jan 2013 14:51:09 +0100\0" "To\0Jan Kiszka <jan.kiszka@siemens.com>\0" "Cc\0Andrew Morton <akpm@linux-foundation.org>" linux-kernel@vger.kernel.org @@ -74,9 +74,9 @@ "> +MAX_CPUS = 4096\n" "> +\n" "> +def get_current_cpu():\n" - "> +\tif get_gdbserver_type() = GDBSERVER_QEMU:\n" + "> +\tif get_gdbserver_type() == GDBSERVER_QEMU:\n" "> +\t\treturn gdb.selected_thread().num - 1\n" - "> +\telif get_gdbserver_type() = GDBSERVER_KGDB:\n" + "> +\telif get_gdbserver_type() == GDBSERVER_KGDB:\n" "> +\t\ttid = gdb.selected_thread().ptid[2]\n" "> +\t\tif tid > (0x100000000 - MAX_CPUS - 2):\n" "> +\t\t\treturn 0x100000000 - tid - 2\n" @@ -87,7 +87,7 @@ "> +\t\t\t\t \"not yet supported with this gdb server.\")\n" "> +\n" "> +def per_cpu(var_ptr, cpu):\n" - "> +\tif cpu = -1:\n" + "> +\tif cpu == -1:\n" "> +\t\tcpu = get_current_cpu()\n" "> +\tif is_target_arch(\"sparc:v9\"):\n" "> +\t\toffset = gdb.parse_and_eval(\"trap_block[\" + str(cpu) +\n" @@ -122,4 +122,4 @@ "Sent from a fat crate under my desk. Formatting is fine.\n" -- -8e32e99b5a691068a554bb3adc1396a94fc688f4090acdf68d61ee9e99e69f5c +c4d56aca58b8c52e1f00bf65576b7805748f5cbeb5d6ef7fe3966dd533eb3d92
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.