process.cc (13995:5d459168a680) | process.cc (14014:ce216ee5d886) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * Copyright (c) 2009 The University of Edinburgh 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 74 unchanged lines hidden (view full) --- 83unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 84{ 85 int index = 0; 86 auto process = tc->getProcessPtr(); 87 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 88 89 strcpy(name->sysname, "Linux"); 90 strcpy(name->nodename, "sim.gem5.org"); | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * Copyright (c) 2009 The University of Edinburgh 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 74 unchanged lines hidden (view full) --- 83unameFunc(SyscallDesc *desc, int callnum, ThreadContext *tc) 84{ 85 int index = 0; 86 auto process = tc->getProcessPtr(); 87 TypedBufferArg<Linux::utsname> name(process->getSyscallArg(tc, index)); 88 89 strcpy(name->sysname, "Linux"); 90 strcpy(name->nodename, "sim.gem5.org"); |
91 strcpy(name->release, "3.0.0"); | 91 strcpy(name->release, process->release.c_str()); |
92 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003"); 93 strcpy(name->machine, "power"); 94 95 name.copyOut(tc->getMemProxy()); 96 return 0; 97} 98 99SyscallDesc PowerLinuxProcess::syscallDescs[] = { --- 388 unchanged lines hidden --- | 92 strcpy(name->version, "#1 Mon Aug 18 11:32:15 EDT 2003"); 93 strcpy(name->machine, "power"); 94 95 name.copyOut(tc->getMemProxy()); 96 return 0; 97} 98 99SyscallDesc PowerLinuxProcess::syscallDescs[] = { --- 388 unchanged lines hidden --- |