MCPcopy Index your code
hub / github.com/nodejs/node / GetASLR

Method GetASLR

deps/v8/tools/run_perf.py:1069–1075  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1067
1068 @staticmethod
1069 def GetASLR():
1070 try:
1071 with open('/proc/sys/kernel/randomize_va_space', 'r') as f:
1072 return int(f.readline().strip())
1073 except Exception:
1074 logging.exception('Failed to get current ASLR settings.')
1075 raise
1076
1077 @staticmethod
1078 def SetASLR(value):

Callers 2

__enter__Method · 0.80
SetASLRMethod · 0.80

Calls 3

intFunction · 0.85
exceptionMethod · 0.80
openFunction · 0.50

Tested by

no test coverage detected