Home
last modified time | relevance | path

Searched refs:script (Results 1 – 23 of 23) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/
DRegisterCollectionHookExtensions.cs18 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddBeforeReadByteHook() argument
20 … var engine = new RegisterCollectionHookPythonEngine<byte, ByteRegisterCollection>(@this, script); in AddBeforeReadByteHook()
28 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddAfterReadByteHook() argument
30 … var engine = new RegisterCollectionHookPythonEngine<byte, ByteRegisterCollection>(@this, script); in AddAfterReadByteHook()
38 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddBeforeWriteByteHook() argument
40 … var engine = new RegisterCollectionHookPythonEngine<byte, ByteRegisterCollection>(@this, script); in AddBeforeWriteByteHook()
48 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddAfterWriteByteHook() argument
51 … var engine = new RegisterCollectionHookPythonEngine<byte, ByteRegisterCollection>(@this, script); in AddAfterWriteByteHook()
78 …ordHook(this IProvidesRegisterCollection<WordRegisterCollection> @this, long offset, string script) in AddBeforeReadWordHook() argument
80 …var engine = new RegisterCollectionHookPythonEngine<ushort, WordRegisterCollection>(@this, script); in AddBeforeReadWordHook()
[all …]
DPacketInterceptionPythonEngine.cs23 …public PacketInterceptionPythonEngine(IRadio radio, string script = null, OptionalReadFilePath fil… in PacketInterceptionPythonEngine() argument
25 if((script == null && filename == null) || (script != null && filename != null)) in PacketInterceptionPythonEngine()
31 this.script = script; in PacketInterceptionPythonEngine()
54 if(script != null) in InnerInit()
56 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
68 private readonly string script; field in Antmicro.Renode.Hooks.PacketInterceptionPythonEngine
DGPIOPythonEngine.cs20 public GPIOPythonEngine(IGPIOWithHooks gpio, string script) in GPIOPythonEngine() argument
22 this.script = script; in GPIOPythonEngine()
41 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
49 private readonly string script; field in Antmicro.Renode.Hooks.GPIOPythonEngine
DPSCIPythonEngine.cs19 public PSCIPythonEngine(ICPUWithPSCI cpu, string script, ulong functionIdentifier) in PSCIPythonEngine() argument
21 this.script = script; in PSCIPythonEngine()
41 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
49 private readonly string script; field in Antmicro.Renode.Hooks.PSCIPythonEngine
DSyncPointHookPythonEngine.cs21 public SyncPointHookPythonEngine(string script, Emulation emulation) in SyncPointHookPythonEngine() argument
23 this.script = script; in SyncPointHookPythonEngine()
41 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
47 private readonly string script; field in Antmicro.Renode.Hooks.SyncPointHookPythonEngine
DInterruptPythonEngine.cs20 public InterruptPythonEngine(IMachine machine, ICPUWithHooks cpu, string script) in InterruptPythonEngine() argument
22 this.script = script; in InterruptPythonEngine()
44 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
52 private readonly string script; field in Antmicro.Renode.Hooks.InterruptPythonEngine
DWFIPythonEngine.cs20 public WFIPythonEngine(IMachine machine, ICPUWithHooks cpu, string script) in WFIPythonEngine() argument
22 this.script = script; in WFIPythonEngine()
44 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
52 private readonly string script; field in Antmicro.Renode.Hooks.WFIPythonEngine
DWatchpointHookPythonEngine.cs21 public WatchpointHookPythonEngine(IBusController sysbus, string script) in WatchpointHookPythonEngine() argument
24 this.script = script; in WatchpointHookPythonEngine()
47 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
54 private readonly string script; field in Antmicro.Renode.Hooks.WatchpointHookPythonEngine
DRegisterCollectionHookPythonEngine.cs22 …llectionHookPythonEngine(IProvidesRegisterCollection<R> registerCollectionProvider, string script) in RegisterCollectionHookPythonEngine() argument
25 this.script = script; in RegisterCollectionHookPythonEngine()
48 var source = Engine.CreateScriptSourceFromString(script); in InnerInit()
55 private readonly string script; field in Antmicro.Renode.Hooks.RegisterCollectionHookPythonEngine
DPacketInterceptionExtensions.cs17 …public static void SetPacketHookFromScript(this WirelessMedium medium, IRadio radio, string script) in SetPacketHookFromScript() argument
19 if(string.IsNullOrEmpty(script)) in SetPacketHookFromScript()
23 var runner = new PacketInterceptionPythonEngine(radio, script: script); in SetPacketHookFromScript()
DRegisterCollectionHookExtensions.tt41 …his IProvidesRegisterCollection<<#= suffix #>RegisterCollection> @this, long offset, string script)
43 …ew RegisterCollectionHookPythonEngine<<#= type #>, <#= suffix #>RegisterCollection>(@this, script);
51 …his IProvidesRegisterCollection<<#= suffix #>RegisterCollection> @this, long offset, string script)
53 …ew RegisterCollectionHookPythonEngine<<#= type #>, <#= suffix #>RegisterCollection>(@this, script);
61 …his IProvidesRegisterCollection<<#= suffix #>RegisterCollection> @this, long offset, string script)
63 …ew RegisterCollectionHookPythonEngine<<#= type #>, <#= suffix #>RegisterCollection>(@this, script);
71 …his IProvidesRegisterCollection<<#= suffix #>RegisterCollection> @this, long offset, string script)
74 …ew RegisterCollectionHookPythonEngine<<#= type #>, <#= suffix #>RegisterCollection>(@this, script);
DUserStatePythonEngine.cs21 public UserStatePythonEngine(IMachine machine, string script) in UserStatePythonEngine() argument
23 Script = script; in UserStatePythonEngine()
DUartPythonEngine.cs22 public UartPythonEngine(IMachine machine, IUART uart, string script) in UartPythonEngine() argument
24 Script = script; in UartPythonEngine()
DBlockPythonEngine.cs21 public BlockPythonEngine(IMachine mach, ICPUWithHooks cpu, string script) in BlockPythonEngine() argument
23 Script = script; in BlockPythonEngine()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DRiscVInstructionPythonEngine.cs23 …public RiscVInstructionPythonEngine(BaseRiscV cpu, string pattern, string script = null, OptionalR… in RiscVInstructionPythonEngine() argument
25 if((script == null && path == null) || (script != null && path != null)) in RiscVInstructionPythonEngine()
33 this.script = script; in RiscVInstructionPythonEngine()
57 if(script != null) in InnerInit()
59 source = Engine.CreateScriptSourceFromString(script); in InnerInit()
78 private readonly string script; field in Antmicro.Renode.Hooks.RiscVInstructionPythonEngine
DRiscVCsrPythonEngine.cs23 …public RiscVCsrPythonEngine(BaseRiscV cpu, ulong csr, bool initable, string script = null, Optiona… in RiscVCsrPythonEngine() argument
25 if((script == null && path == null) || (script != null && path != null)) in RiscVCsrPythonEngine()
33 this.script = script; in RiscVCsrPythonEngine()
81 if(script != null) in InnerInit()
83 source = Engine.CreateScriptSourceFromString(script); in InnerInit()
120 private readonly string script; field in Antmicro.Renode.Hooks.RiscVCsrPythonEngine
DRiscVCpuHooksExtensions.cs18 var engine = new RiscVCsrPythonEngine(cpu, csr, initable, script: pythonScript); in RegisterCSRHandlerFromString()
30 var engine = new RiscVInstructionPythonEngine(cpu, pattern, script: pythonScript); in InstallCustomInstructionHandlerFromString()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Python/
DPythonPeripheral.cs30 …public static void PyDevFromString(this Machine @this, string script, ulong address, int size, boo… in PyDevFromString() argument
32 var pyDev = new PythonPeripheral(size, initable, script: script); in PyDevFromString()
44 …public PythonPeripheral(int size, bool initable = false, string script = null, string filename = n… in PythonPeripheral() argument
48 this.script = script; in PythonPeripheral()
51 …if((this.script == null && this.filename == null) || (this.script != null && this.filename != null… in PythonPeripheral()
55 if(this.script != null) in PythonPeripheral()
57 ….pythonRunner = new PeripheralPythonEngine(this, x => x.CreateScriptSourceFromString(this.script)); in PythonPeripheral()
215 private readonly string script; field in Antmicro.Renode.Peripherals.Python.PythonPeripheral
DPeripheralPythonEngine.cs40 private void InitScope(ScriptSource script) in InitScope() argument
48 source = script; in InitScope()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitorPythonEngine.cs44 var script = Engine.CreateScriptSourceFromFile(monitorPath); // standard lib in MonitorPythonEngine()
45 script.Compile().Execute(Scope); in MonitorPythonEngine()
121 var script = Engine.CreateScriptSourceFromFile(fileName); in TryExecutePythonScript()
122 ExecutePythonScriptInner(script, writer); in TryExecutePythonScript()
130 var script = Engine.CreateScriptSourceFromString(command); in ExecutePythonCommand()
131 return ExecutePythonScriptInner(script, writer); in ExecutePythonCommand()
153 private object ExecutePythonScriptInner(ScriptSource script, ICommandInteraction writer) in ExecutePythonScriptInner() argument
158 return script.Execute(Scope); in ExecutePythonScriptInner()
DMonitorExecutorExtensions.cs21 public static void ExecutePython(this IMachine machine, string script) in ExecutePython() argument
23 var engine = new ExecutorPythonEngine(machine, script); in ExecutePython()
32 …static void ExecutePythonEvery(this IMachine machine, string name, int milliseconds, string script) in ExecutePythonEvery() argument
34 var engine = new ExecutorPythonEngine(machine, script); in ExecutePythonEvery()
77 public ExecutorPythonEngine(IMachine machine, string script) in ExecutorPythonEngine() argument
82 var source = Engine.CreateScriptSourceFromString(script); in ExecutorPythonEngine()
/Renode-Infrastructure-v1.15.3-29f510e/src/UI/ConsoleBackendAnalyzers/
DTerminalAppProvider.cs20 var script = TemporaryFilesManager.Instance.GetTemporaryFile(); in CreateProcess()
21 File.WriteAllLines(script, new [] { in CreateProcess()
28 …Syscall.chmod(script, FilePermissions.S_IXUSR | FilePermissions.S_IRUSR | FilePermissions.S_IWUSR); in CreateProcess()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/PythonPeripherals/
DSerializationTests.cs31 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializeSimplePyDev()
49 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializePyDevWithListAndDictionary()
70 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializePyDevWithModuleImport()
85 var pyDev = new PythonPeripheral(100, true, script: source); in ShouldSerializeMachineWithSimplePyDev()