Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2019 17:25:48 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342767 - in head/sys: amd64/amd64 i386/i386
Message-ID:  <201901041725.x04HPmIt037652@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jan  4 17:25:47 2019
New Revision: 342767
URL: https://svnweb.freebsd.org/changeset/base/342767

Log:
  x86: Report per-cpu IPI TLB shootdown generation in ddb 'show pcpu' output.
  
  It is useful for inspecting tlb shootdown hangs.  The smp_tlb_generation value
  is available using regular ddb data inspection commands.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days

Modified:
  head/sys/amd64/amd64/db_interface.c
  head/sys/i386/i386/db_interface.c

Modified: head/sys/amd64/amd64/db_interface.c
==============================================================================
--- head/sys/amd64/amd64/db_interface.c	Fri Jan  4 17:14:50 2019	(r342766)
+++ head/sys/amd64/amd64/db_interface.c	Fri Jan  4 17:25:47 2019	(r342767)
@@ -104,4 +104,5 @@ db_show_mdpcpu(struct pcpu *pc)
 	db_printf("gs32p        = %p\n", pc->pc_gs32p);
 	db_printf("ldt          = %p\n", pc->pc_ldt);
 	db_printf("tss          = %p\n", pc->pc_tss);
+	db_printf("tlb gen      = %u\n", pc->pc_smp_tlb_done);
 }

Modified: head/sys/i386/i386/db_interface.c
==============================================================================
--- head/sys/i386/i386/db_interface.c	Fri Jan  4 17:14:50 2019	(r342766)
+++ head/sys/i386/i386/db_interface.c	Fri Jan  4 17:25:47 2019	(r342767)
@@ -118,4 +118,5 @@ db_show_mdpcpu(struct pcpu *pc)
 	db_printf("trampstk     = 0x%x\n", pc->pc_trampstk);
 	db_printf("kesp0        = 0x%x\n", pc->pc_kesp0);
 	db_printf("common_tssp  = 0x%x\n", (u_int)pc->pc_common_tssp);
+	db_printf("tlb gen      = %u\n", pc->pc_smp_tlb_done);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901041725.x04HPmIt037652>