stacktrace.cc (14018:9d2153431f44) stacktrace.cc (14020:c9bf7a011602)
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;

--- 41 unchanged lines hidden (view full) ---

50ProcessInfo::task(Addr ksp) const
51{
52 Addr base = ksp & ~0x3fff;
53 if (base == ULL(0xfffffc0000000000))
54 return 0;
55
56 Addr tsk;
57
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;

--- 41 unchanged lines hidden (view full) ---

50ProcessInfo::task(Addr ksp) const
51{
52 Addr base = ksp & ~0x3fff;
53 if (base == ULL(0xfffffc0000000000))
54 return 0;
55
56 Addr tsk;
57
58 FSTranslatingPortProxy &vp = tc->getVirtProxy();
58 PortProxy &vp = tc->getVirtProxy();
59 tsk = vp.read<Addr>(base + task_off, GuestByteOrder);
60
61 return tsk;
62}
63
64int
65ProcessInfo::pid(Addr ksp) const
66{
67 Addr task = this->task(ksp);
68 if (!task)
69 return -1;
70
71 uint16_t pd;
72
59 tsk = vp.read<Addr>(base + task_off, GuestByteOrder);
60
61 return tsk;
62}
63
64int
65ProcessInfo::pid(Addr ksp) const
66{
67 Addr task = this->task(ksp);
68 if (!task)
69 return -1;
70
71 uint16_t pd;
72
73 FSTranslatingPortProxy &vp = tc->getVirtProxy();
73 PortProxy &vp = tc->getVirtProxy();
74 pd = vp.read<uint16_t>(task + pid_off, GuestByteOrder);
75
76 return pd;
77}
78
79std::string
80ProcessInfo::name(Addr ksp) const
81{

--- 151 unchanged lines hidden ---
74 pd = vp.read<uint16_t>(task + pid_off, GuestByteOrder);
75
76 return pd;
77}
78
79std::string
80ProcessInfo::name(Addr ksp) const
81{

--- 151 unchanged lines hidden ---