stacktrace.cc (6378:4a2ff62c3b4f) | stacktrace.cc (8706:b1838faf3bcc) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 40 unchanged lines hidden (view full) --- 49ProcessInfo::task(Addr ksp) const 50{ 51 Addr base = ksp & ~0x3fff; 52 if (base == ULL(0xfffffc0000000000)) 53 return 0; 54 55 Addr tsk; 56 | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 40 unchanged lines hidden (view full) --- 49ProcessInfo::task(Addr ksp) const 50{ 51 Addr base = ksp & ~0x3fff; 52 if (base == ULL(0xfffffc0000000000)) 53 return 0; 54 55 Addr tsk; 56 |
57 VirtualPort *vp; | 57 FSTranslatingPortProxy* vp; |
58 | 58 |
59 vp = tc->getVirtPort(); | 59 vp = tc->getVirtProxy(); |
60 tsk = vp->readGtoH<Addr>(base + task_off); 61 62 return tsk; 63} 64 65int 66ProcessInfo::pid(Addr ksp) const 67{ 68 Addr task = this->task(ksp); 69 if (!task) 70 return -1; 71 72 uint16_t pd; 73 | 60 tsk = vp->readGtoH<Addr>(base + task_off); 61 62 return tsk; 63} 64 65int 66ProcessInfo::pid(Addr ksp) const 67{ 68 Addr task = this->task(ksp); 69 if (!task) 70 return -1; 71 72 uint16_t pd; 73 |
74 VirtualPort *vp; | 74 FSTranslatingPortProxy* vp; |
75 | 75 |
76 vp = tc->getVirtPort(); | 76 vp = tc->getVirtProxy(); |
77 pd = vp->readGtoH<uint16_t>(task + pid_off); 78 79 return pd; 80} 81 82string 83ProcessInfo::name(Addr ksp) const 84{ --- 152 unchanged lines hidden --- | 77 pd = vp->readGtoH<uint16_t>(task + pid_off); 78 79 return pd; 80} 81 82string 83ProcessInfo::name(Addr ksp) const 84{ --- 152 unchanged lines hidden --- |