db_nextframe/amd64: catch up with r328083 to recognize fast_syscall_common

Since that change the system call stack traces look like this:
  ...
  sys___sysctl() at sys___sysctl+0x5f/frame 0xfffffe0028e13ac0
  amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe0028e13bf0
  fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0028e13bf0
So, db_nextframe() stopped recognizing the system call frame.
This commit should fix that.

Reviewed by:	kib
MFC after:	4 days
This commit is contained in:
Andriy Gapon 2018-03-03 15:10:37 +00:00
parent b53ff85eb2
commit ae0eceab56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330338

View File

@ -212,7 +212,9 @@ db_nextframe(struct amd64_frame **fp, db_addr_t *ip, struct thread *td)
strcmp(name, "Xcpususpend") == 0 ||
strcmp(name, "Xrendezvous") == 0)
frame_type = INTERRUPT;
else if (strcmp(name, "Xfast_syscall") == 0)
else if (strcmp(name, "Xfast_syscall") == 0 ||
strcmp(name, "Xfast_syscall_pti") == 0 ||
strcmp(name, "fast_syscall_common") == 0)
frame_type = SYSCALL;
#ifdef COMPAT_FREEBSD32
else if (strcmp(name, "Xint0x80_syscall") == 0)