[gem5-dev] Unix domain sockets for gdb/m5term connections

2017-03-15 Thread Gabe Black
Hi foIks. On our network here at work, we have an issue where security
processes will scan ports and blow up gem5 instances which happen to be
listening for remote gdb or m5term connections. I was thinking it might be
nice to make it so those connections could use Unix domain sockets instead
of network sockets to prevent that issue.

Does anybody have an opinion on that? Any recommendations as far as how
something like that could be set up? I haven't looked at the actual code
yet, but I was thinking of adding an option to gem5 itself to tell it to
create the inodes named after where the thing connecting falls in the
object hierarchy. m5term could potentially differentiate based on a flag or
on the format of the thing it's being told to connect to.

I'm not sure if gdb supports unix domain sockets so that could be a
problem, although I haven't tried it yet either.

Gabe
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Alpha ISA compile for stream benchmark

2017-03-15 Thread saravanan s
Hello I am trying to run Gem5 in se mode with stream benchmark. I am able to 
run with x86 compile but not with alpha Isa ... It says fatal the object file 
not supported for this ISA (alpha)... Can any one tell me which GCC needs to be 
used ? 
Also in fs mode I have problems in getting dramsim2 latency number while 
running parsec benchmark.. any thought on what am missing ... Same modified 
dramsim2 works 
Well with marssx86 and gives bank latency numbers... Thanks for your help in 
advance.
Saravanan SethuramanSenior research engineer, IBM
Sent from Yahoo Mail on Android
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in public/gem5[master]: syscall-emul: change NULL to nullptr in Process files

2017-03-15 Thread Brandon Potter (Gerrit)
Brandon Potter has uploaded this change for review. (  
https://gem5-review.googlesource.com/2421



Change subject: syscall-emul: change NULL to nullptr in Process files
..

syscall-emul: change NULL to nullptr in Process files

Change-Id: I9ff21092876593237f919e9f7fb7283bd865ba2e
---
M src/sim/process.cc
M src/sim/process.hh
2 files changed, 8 insertions(+), 8 deletions(-)



diff --git a/src/sim/process.cc b/src/sim/process.cc
index 406b386..89a82a6 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -151,7 +151,7 @@
 !objFile->loadLocalSymbols(debugSymbolTable) ||
 !objFile->loadWeakSymbols(debugSymbolTable)) {
 delete debugSymbolTable;
-debugSymbolTable = NULL;
+debugSymbolTable = nullptr;
 }
 }
 }
@@ -259,7 +259,7 @@
 if (ThreadContext::Halted == it->status())
 return it;
 }
-return NULL;
+return nullptr;
 }

 void
@@ -406,7 +406,7 @@
 numSyscalls++;

 SyscallDesc *desc = getDesc(callnum);
-if (desc == NULL)
+if (desc == nullptr)
 fatal("Syscall %d out of range", callnum);

 desc->doSyscall(callnum, this, tc, fault);
@@ -426,7 +426,7 @@
 return d;
 }

-return NULL;
+return nullptr;
 }

 void
@@ -480,7 +480,7 @@
 Process *
 ProcessParams::create()
 {
-Process *process = NULL;
+Process *process = nullptr;

 // If not specified, set the executable parameter equal to the
 // simulated system's zeroth command line parameter
@@ -489,7 +489,7 @@
 }

 ObjectFile *obj_file = createObjectFile(executable);
-if (obj_file == NULL) {
+if (obj_file == nullptr) {
 fatal("Can't load object file %s", executable);
 }

@@ -628,7 +628,7 @@
 #error "THE_ISA not set"
 #endif

-if (process == NULL)
+if (process == nullptr)
 fatal("Unknown error creating process object.");
 return process;
 }
diff --git a/src/sim/process.hh b/src/sim/process.hh
index da538f8..add3eb3 100644
--- a/src/sim/process.hh
+++ b/src/sim/process.hh
@@ -98,7 +98,7 @@
  * Find an emulated device driver.
  *
  * @param filename Name of the device (under /dev)
- * @return Pointer to driver object if found, else NULL
+ * @return Pointer to driver object if found, else nullptr
  */
 EmulatedDriver *findDriver(std::string filename);


--
To view, visit https://gem5-review.googlesource.com/2421
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ff21092876593237f919e9f7fb7283bd865ba2e
Gerrit-Change-Number: 2421
Gerrit-PatchSet: 1
Gerrit-Owner: Brandon Potter 
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in public/gem5[master]: syscall-emul: Hotfix for FreeBSD/Mac builds

2017-03-15 Thread Brandon Potter (Gerrit)
Brandon Potter has uploaded this change for review. (  
https://gem5-review.googlesource.com/2420



Change subject: syscall-emul: Hotfix for FreeBSD/Mac builds
..

syscall-emul: Hotfix for FreeBSD/Mac builds

The clone system call added in 236719892 relies on header files
from Linux systems. Obviously, this prevents compilation for
anyone using FreeBSD or Mac to compile the simulator. This
changeset is meant as a temporary fix to allow builds on
non-Linux systems until a proper solution is found.

Change-Id: I404cc41c588ed193dd2c1ca0c1aea35b0786fe4e
---
M src/sim/process.cc
1 file changed, 9 insertions(+), 0 deletions(-)



diff --git a/src/sim/process.cc b/src/sim/process.cc
index 406b386..14e5d1a 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -160,6 +160,15 @@
 Process::clone(ThreadContext *otc, ThreadContext *ntc,
Process *np, TheISA::IntReg flags)
 {
+#ifndef CLONE_VM
+#define CLONE_VM 0
+#endif
+#ifndef CLONE_FILES
+#define CLONE_FILES 0
+#endif
+#ifndef CLONE_THREAD
+#define CLONE_THREAD 0
+#endif
 if (CLONE_VM & flags) {
 /**
  * Share the process memory address space between the new process

--
To view, visit https://gem5-review.googlesource.com/2420
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I404cc41c588ed193dd2c1ca0c1aea35b0786fe4e
Gerrit-Change-Number: 2420
Gerrit-PatchSet: 1
Gerrit-Owner: Brandon Potter 
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Change in public/gem5[master]: misc: add copyright/name information for contribution

2017-03-15 Thread Pierre-Yves Péneau (Gerrit)

Hello Jason Lowe-Power, Andreas Sandberg,

I'd like you to reexamine a change. Please visit

https://gem5-review.googlesource.com/2328

to look at the new patch set (#2).

Change subject: misc: add copyright/name information for contribution
..

misc: add copyright/name information for contribution

Change-Id: I9242ce50b86b02ec1880d411627da11265cb8961
Signed-off-by: Pierre-Yves Péneau 
---
M CONTRIBUTING.md
1 file changed, 5 insertions(+), 0 deletions(-)




diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 8e82798..a9781a3 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -186,6 +186,11 @@
 It is imperative that you use your real name and your real email address in
 both tags and in the author field of the changeset.

+For significant changes, authors are encouraged to add copyright  
information
+and their names at the beginning of the file. The main purpose of the  
author
+names on the file is to track who is most knowledgeable about the file  
(e.g.,

+who has contributed a significant amount of code to the file).
+
 Note: If you do not follow these guidelines, the gerrit review site will
 automatically reject your patch.
 If this happens, update your changeset descriptions to match the required  
style


--
To view, visit https://gem5-review.googlesource.com/2328
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I9242ce50b86b02ec1880d411627da11265cb8961
Gerrit-Change-Number: 2328
Gerrit-PatchSet: 2
Gerrit-Owner: Pierre-Yves Péneau 
Gerrit-Reviewer: Andreas Sandberg 
Gerrit-Reviewer: Jason Lowe-Power 
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

[gem5-dev] Cron /z/m5/regression/do-regression quick

2017-03-15 Thread Cron Daemon
* build/MIPS/tests/opt/quick/se/00.hello/mips/linux/o3-timing: CHANGED!
* build/MIPS/tests/opt/quick/se/00.hello/mips/linux/simple-timing: CHANGED!
*** diff[simout]: SKIPPED* 
build/MIPS/tests/opt/quick/se/03.learning-gem5/mips/linux/learning-gem5-p1-simple:
 CHANGED!*** diff[config.ini]: SKIPPED
* 
build/MIPS/tests/opt/quick/se/03.learning-gem5/mips/linux/learning-gem5-p1-two-level:
 CHANGED!
* build/MIPS/tests/opt/quick/se/00.hello/mips/linux/simple-atomic: CHANGED!
* build/MIPS/tests/opt/quick/se/00.hello/mips/linux/simple-timing-ruby: 
CHANGED!
* build/POWER/tests/opt/quick/se/00.hello/power/linux/o3-timing: CHANGED!
* build/POWER/tests/opt/quick/se/00.hello/power/linux/simple-atomic: 
CHANGED!
* build/SPARC/tests/opt/quick/se/02.insttest/sparc/linux/o3-timing: CHANGED!
* build/SPARC/tests/opt/quick/se/02.insttest/sparc/linux/simple-atomic: 
CHANGED!
* build/SPARC/tests/opt/quick/se/00.hello/sparc/linux/simple-timing-ruby: 
CHANGED!
* build/SPARC/tests/opt/quick/se/00.hello/sparc/linux/simple-atomic: 
CHANGED!
* build/SPARC/tests/opt/quick/se/00.hello/sparc/linux/simple-timing: 
CHANGED!
* 
build/SPARC/tests/opt/quick/se/40.m5threads-test-atomic/sparc/linux/o3-timing-mp:
 CHANGED!
*** gem5: OK* 
build/SPARC/tests/opt/quick/se/10.mcf/sparc/linux/simple-atomic: CHANGED!
* 
build/SPARC/tests/opt/quick/se/40.m5threads-test-atomic/sparc/linux/simple-atomic-mp:
 CHANGED!
* 
build/SPARC/tests/opt/quick/se/40.m5threads-test-atomic/sparc/linux/simple-timing-mp:
 CHANGED!
*** diff[config.ini]: SKIPPED* 
build/SPARC/tests/opt/quick/se/03.learning-gem5/sparc/linux/learning-gem5-p1-simple:
 CHANGED!
* build/SPARC/tests/opt/quick/se/02.insttest/sparc/linux/simple-timing: 
CHANGED!
* 
build/SPARC/tests/opt/quick/se/03.learning-gem5/sparc/linux/learning-gem5-p1-two-level:
 CHANGED!
*** diff[config.ini]: SKIPPED* 
build/SPARC/tests/opt/quick/se/50.vortex/sparc/linux/simple-timing: CHANGED!
* build/SPARC/tests/opt/quick/se/50.vortex/sparc/linux/simple-atomic: 
CHANGED!
* build/SPARC/tests/opt/quick/se/70.twolf/sparc/linux/simple-atomic: 
CHANGED!*** diff[smred.twf]: SKIPPED
* build/SPARC/tests/opt/quick/se/70.twolf/sparc/linux/simple-timing: 
CHANGED!
* 
build/X86/tests/opt/quick/se/03.learning-gem5/x86/linux/learning-gem5-p1-two-level:
 CHANGED!
* 
build/X86/tests/opt/quick/se/03.learning-gem5/x86/linux/learning-gem5-p1-simple:
 CHANGED!
* build/X86/tests/opt/quick/se/00.hello/x86/linux/simple-timing: CHANGED!
* build/X86/tests/opt/quick/se/10.mcf/x86/linux/simple-atomic: CHANGED!
*** diff[simerr]: SKIPPED* 
build/X86/tests/opt/quick/se/00.hello/x86/linux/simple-timing-ruby: CHANGED!
* build/X86/tests/opt/quick/se/00.hello/x86/linux/o3-timing: CHANGED!
* build/X86/tests/opt/quick/se/00.hello/x86/linux/simple-atomic: CHANGED!
* build/X86/tests/opt/quick/se/70.twolf/x86/linux/simple-timing: 
CHANGED!*** diff[simout]: SKIPPED
* build/X86/tests/opt/quick/se/70.twolf/x86/linux/simple-atomic: CHANGED!
*** diff[simout]: SKIPPED*** diff[config.ini]: SKIPPED*** diff[simerr]: 
SKIPPED* 
build/ARM/tests/opt/quick/se/00.hello/arm/linux/simple-atomic-dummychecker: 
CHANGED!*** diff[config.ini]: SKIPPED
* build/ARM/tests/opt/quick/se/00.hello/arm/linux/o3-timing: CHANGED!
* build/ARM/tests/opt/quick/se/00.hello/arm/linux/minor-timing: CHANGED!
* build/ARM/tests/opt/quick/se/00.hello/arm/linux/simple-timing: 
CHANGED!* 
build/ARM/tests/opt/quick/se/00.hello/arm/linux/o3-timing-checker: CHANGED!*** 
diff[simerr]: SKIPPED
* build/ARM/tests/opt/quick/se/00.hello/arm/linux/simple-atomic: CHANGED!
* 
build/ARM/tests/opt/quick/se/03.learning-gem5/arm/linux/learning-gem5-p1-simple:
 CHANGED!
* 
build/ARM/tests/opt/quick/se/03.learning-gem5/arm/linux/learning-gem5-p1-two-level:
 CHANGED!
* build/ARM/tests/opt/quick/se/10.mcf/arm/linux/simple-atomic: CHANGED!
* build/ARM/tests/opt/quick/se/10.mcf/arm/linux/simple-timing: CHANGED!
* build/ARM/tests/opt/quick/se/50.vortex/arm/linux/simple-timing: 
CHANGED!* build/ARM/tests/opt/quick/se/50.vortex/arm/linux/simple-atomic: 
CHANGED!
* build/ARM/tests/opt/quick/se/70.twolf/arm/linux/simple-atomic: CHANGED!
* build/ARM/tests/opt/quick/se/70.twolf/arm/linux/simple-timing: CHANGED!
* 
build/ARM/tests/opt/quick/fs/10.linux-boot/arm/linux/realview-simple-timing-dual:
 CHANGED!Maximum error magnitude: +20.00%
* 
build/ARM/tests/opt/quick/fs/10.linux-boot/arm/linux/realview-simple-timing: 
CHANGED!
* build/RISCV/tests/opt/quick/se/00.hello/riscv/linux/simple-atomic: 
CHANGED!* build/RISCV/tests/opt/quick/se/00.hello/riscv/linux/o3-timing: 
CHANGED!
* build/RISCV/tests/opt/quick/se/00.hello/riscv/linux/minor-timing: CHANGED!
* build/RISCV/tests/opt/quick/se/00.hello/riscv/linux/simple-timing: 
CHANGED!* 
build/RISCV/tests/opt/quick/se/00.hello/riscv/linux/simple-timing-ruby: CHANGED!
*