| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/ |
| D | FilePath.cs | 18 public FilePath(string path, FileAccess fileAccess, bool validate = true) in FilePath() argument 20 this.path = path; in FilePath() 31 if(!File.Exists(path)) in Validate() 38 using(var fs = File.Open(path, FileMode.Open, fileAccess, FileShare.ReadWrite)) in Validate() 58 return path; in ToString() 63 return fp.path; in operator string() 68 if(File.Exists(path)) in CanBeCreated() 75 using(File.Create(path)) in CanBeCreated() 78 File.Delete(path); in CanBeCreated() 88 protected readonly string path; field in Antmicro.Renode.Utilities.FilePath [all …]
|
| D | TemporaryFilesManager.cs | 34 string path; in GetTemporaryFile() 38 path = Path.Combine(emulatorTemporaryPath, fileName); in GetTemporaryFile() 41 while(File.Exists(path)); in GetTemporaryFile() 43 using(File.Create(path)) in GetTemporaryFile() 51 ofc(path); in GetTemporaryFile() 54 return path; in GetTemporaryFile() 58 … public bool TryCreateFile(string fileName, out string path, bool overwriteExistingFile = false) in TryCreateFile() argument 60 path = Path.Combine(emulatorTemporaryPath, fileName); in TryCreateFile() 64 if(File.Exists(path)) in TryCreateFile() 68 path = null; in TryCreateFile() [all …]
|
| D | TypeManager.cs | 85 public bool ScanFile(string path, bool bundled = false) in ScanFile() argument 89 Logger.LogAs(this, LogLevel.Noisy, "Loading assembly {0}.", path); in ScanFile() 92 if(!AnalyzeAssembly(path, bundled: bundled)) in ScanFile() 103 public void Scan(string path, bool recursive = false) in Scan() argument 107 Logger.LogAs(this, LogLevel.Noisy, "Scanning directory {0}.", path); in Scan() 111 ScanInner(path, recursive); in Scan() 268 private void ScanInner(string path, bool recursive) in ScanInner() argument 271 …foreach(var assembly in Directory.GetFiles(path, "*.dll").Union(Directory.GetFiles(path, "*.exe"))) in ScanInner() 282 foreach(var subdir in Directory.GetDirectories(path)) in ScanInner() 344 private Type GetTypeWithLazyLoad(string name, string assemblyFullName, string path) in GetTypeWithLazyLoad() argument [all …]
|
| D | SharedLibraries.cs | 36 public static IntPtr LoadLibrary(string path) in LoadLibrary() argument 39 if (!TryLoadLibrary(path, out address)) in LoadLibrary() 46 public static bool TryLoadLibrary(string path, out IntPtr address) in TryLoadLibrary() argument 49 address = WindowsLoadLibrary(path); in TryLoadLibrary() 67 address = dlopen(path, dlopenFlags); in TryLoadLibrary() 107 public static IEnumerable<string> GetAllSymbols(string path) in GetAllSymbols() argument 110 if(ELFSharp.MachO.MachOReader.TryLoad(path, out machO) == ELFSharp.MachO.MachOResult.OK) in GetAllSymbols() 118 if(ELFSharp.PE.PEReader.TryLoad(path, out pe)) in GetAllSymbols() 122 using(var elf = ELFUtils.LoadELF(path)) in GetAllSymbols()
|
| D | WindowsFileLocker.cs | 19 path = fileToLock; in WindowsFileLocker() 48 File.Delete(path); in Dispose() 57 private readonly string path; field in Antmicro.Renode.Utilities.WindowsFileLocker
|
| D | SnapshotTracker.cs | 56 public void Save(TimeInterval timeStamp, string path) in Save() argument 58 var newSnap = new SnapshotDescriptor(timeStamp, path); in Save() 103 public SnapshotDescriptor(TimeInterval timeStamp, string path) in SnapshotDescriptor() argument 106 Path = path; in SnapshotDescriptor()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/ |
| D | IncludeFileCommand.cs | 34 public bool Run(ICommandInteraction writer, StringToken path) in Run() argument 36 return Run(writer, path.Value); in Run() 39 private bool Run(ICommandInteraction writer, ReadFilePath path) in Run() argument 41 … using(var progress = EmulationManager.Instance.ProgressMonitor.Start("Including script: " + path)) in Run() 44 switch(Path.GetExtension(path)) in Run() 47 result = PythonExecutor(path, writer); in Run() 50 result = CsharpExecutor(path, writer); in Run() 53 result = ReplExecutor(path, writer); in Run() 56 result = ScriptExecutor(path); in Run()
|
| D | LoggerFileCommand.cs | 27 public void Run(StringToken path) in Run() argument 29 InnerRun(path.Value, false); in Run() 33 public void Run(StringToken path, BooleanToken token) in Run() argument 35 InnerRun(path.Value, token.Value); in Run() 38 private void InnerRun(string path, bool flushAfterEveryWrite) in InnerRun() argument 48 Logger.AddBackend(new FileBackend(path, flushAfterEveryWrite), BackendName, true); in InnerRun()
|
| D | MonitorPathCommand.cs | 35 …SetOrAdd(ICommandInteraction writer, [Values( "set", "add")] LiteralToken action, StringToken path) in SetOrAdd() argument 40 monitorPath.Path = path.Value; in SetOrAdd() 43 monitorPath.Append(path.Value); in SetOrAdd() 57 …public MonitorPathCommand(Monitor monitor, MonitorPath path) : base(monitor, "path", "allows modif… in MonitorPathCommand() argument 59 monitorPath = path; in MonitorPathCommand()
|
| D | StartCommand.cs | 35 public void Run(ICommandInteraction writer, StringToken path) in Run() argument 37 if(IncludeCommand.Run(writer, path)) in Run()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/ |
| D | TraceWriterBuilder.cs | 16 …public TraceWriterBuilder(TranslationCPU cpu, SequencedFilePath path, TraceFormat format, bool isB… in TraceWriterBuilder() argument 20 this.path = path; in TraceWriterBuilder() 35 return new TraceBasedModelFlatBufferWriter(cpu, path, format, compress); in CreateWriter() 39 return new TraceBinaryWriter(cpu, path, format, compress); in CreateWriter() 43 return new TraceTextWriter(cpu, path, format, compress); in CreateWriter() 64 private readonly string path; field in Antmicro.Renode.Peripherals.CPU.TraceWriterBuilder
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/ |
| D | RiscVInstructionPythonEngine.cs | 23 …PythonEngine(BaseRiscV cpu, string pattern, string script = null, OptionalReadFilePath path = null) in RiscVInstructionPythonEngine() argument 25 if((script == null && path == null) || (script != null && path != null)) in RiscVInstructionPythonEngine() 34 this.path = path; in RiscVInstructionPythonEngine() 63 if(!File.Exists(path)) in InnerInit() 67 source = Engine.CreateScriptSourceFromFile(path); in InnerInit() 79 private readonly string path; field in Antmicro.Renode.Hooks.RiscVInstructionPythonEngine
|
| D | RiscVCpuHooksExtensions.cs | 22 …public static void RegisterCSRHandlerFromFile(this BaseRiscV cpu, ulong csr, string path, bool ini… in RegisterCSRHandlerFromFile() argument 24 var engine = new RiscVCsrPythonEngine(cpu, csr, initable, path: path); in RegisterCSRHandlerFromFile() 34 …tatic void InstallCustomInstructionHandlerFromFile(this BaseRiscV cpu, string pattern, string path) in InstallCustomInstructionHandlerFromFile() argument 36 var engine = new RiscVInstructionPythonEngine(cpu, pattern, path: path); in InstallCustomInstructionHandlerFromFile()
|
| D | RiscVCsrPythonEngine.cs | 23 …ne(BaseRiscV cpu, ulong csr, bool initable, string script = null, OptionalReadFilePath path = null) in RiscVCsrPythonEngine() argument 25 if((script == null && path == null) || (script != null && path != null)) in RiscVCsrPythonEngine() 34 this.path = path; in RiscVCsrPythonEngine() 87 if(!File.Exists(path)) in InnerInit() 91 source = Engine.CreateScriptSourceFromFile(path); in InnerInit() 121 private readonly string path; field in Antmicro.Renode.Hooks.RiscVCsrPythonEngine
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/ |
| D | UartFileBackend.cs | 22 … public static void CreateFileBackend(this IUART uart, string path, bool immediateFlush = false) in CreateFileBackend() argument 25 var name = ExternalNamePrefix + Path.GetFullPath(path); in CreateFileBackend() 33 … emulation.ExternalsManager.AddExternal(new UartFileBackend(path, uart, immediateFlush), name); in CreateFileBackend() 36 public static void CloseFileBackend(this IUART uart, string path) in CloseFileBackend() argument 39 var name = ExternalNamePrefix + Path.GetFullPath(path); in CloseFileBackend() 57 public UartFileBackend(SequencedFilePath path, IUART uart, bool immediateFlush = false) in UartFileBackend() argument 63 writer = new BinaryWriter(File.Open(path, FileMode.CreateNew)); in UartFileBackend()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/ |
| D | MonitorPath.cs | 31 public void PushWorkingDirectory(string path) in PushWorkingDirectory() argument 33 Environment.CurrentDirectory = System.IO.Path.Combine(CurrentWorkingDirectory, path); in PushWorkingDirectory() 48 private List<string> GetDirEntries(string path) in GetDirEntries() argument 50 var split = path.Split(pathSeparator, StringSplitOptions.RemoveEmptyEntries).Distinct(); in GetDirEntries() 89 public void Append(string path) in Append() argument 91 pathEntries.AddRange(GetDirEntries(path)); in Append()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/ |
| D | AMDCFIFlash.cs | 62 …public void AddBackingFile(ReadFilePath path, long offset, int size, bool read = true, bool write … in AddBackingFile() argument 72 this.DebugLog("Loading {0} bytes at 0x{1:x} from {2}", size, offset, path); in AddBackingFile() 74 using(var stream = File.OpenRead(path)) in AddBackingFile() 83 …this.WarningLog("Wanted to read {0} bytes from '{1}', but got only {2}", size, path, bytes.Length); in AddBackingFile() 95 backingFiles.Add(offset, new BackingFile(size, path)); in AddBackingFile() 145 this.DebugLog("Saving {0} bytes at 0x{1:x} to {2}", file.size, offset, file.path); in Dispose() 148 File.WriteAllBytes(file.path, underlyingMemory.ReadBytes(offset, file.size)); in Dispose() 446 public BackingFile(int size, FilePath path) in BackingFile() argument 449 this.path = path; in BackingFile() 453 public readonly FilePath path; field in Antmicro.Renode.Peripherals.MTD.AMDCFIFlash.BackingFile
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/ |
| D | EmulationManager.cs | 97 public void Load(ReadFilePath path) in Load() argument 99 using(var fstream = new FileStream(path, FileMode.Open, FileAccess.Read)) in Load() 100 using(var stream = path.ToString().EndsWith(".gz", StringComparison.InvariantCulture) in Load() 126 public void Save(string path) in Save() argument 130 using(var stream = new FileStream(path, FileMode.Create)) in Save() 136 … CurrentEmulation.SnapshotTracker.Save(CurrentEmulation.MasterTimeSource.ElapsedVirtualTime, path); in Save() 174 File.Delete(path); in Save()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/ |
| D | GenericSPISensor.cs | 44 public void FeedSamplesFromFile(string path) in FeedSamplesFromFile() argument 46 samplesFifo.FeedSamplesFromFile(path); in FeedSamplesFromFile()
|
| D | HM01B0.cs | 52 public void AddFrame(string path) in AddFrame() argument 57 imageData = File.ReadAllBytes(path); in AddFrame()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Sensor/ |
| D | SensorSamplesFifo.cs | 55 …esFromBinaryFile(IMachine machine, IPeripheral owner, string name, string path, string delayString… in FeedSamplesFromBinaryFile() argument 74 var packets = SensorSamplesPacket<T>.ParseFile(path, sampleConstructor); in FeedSamplesFromBinaryFile() 86 public void FeedSamplesFromFile(string path, Func<string[], T> sampleConstructor = null) in FeedSamplesFromFile() argument 99 var samples = ParseSamplesFile(path, sampleConstructor); in FeedSamplesFromFile() 153 private IEnumerable<T> ParseSamplesFile(string path, Func<string[], T> sampleConstructor) in ParseSamplesFile() argument 160 using(var reader = File.OpenText(path)) in ParseSamplesFile()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Analog/ |
| D | EOSS3_ADC.cs | 38 public void FeedSample(string path, uint channelNo, int repeat = 1) in FeedSample() argument 45 var parsedSamples = ParseSamplesFile(path); in FeedSample() 62 private IEnumerable<Sample> ParseSamplesFile(string path) in ParseSamplesFile() argument 69 using(var reader = File.OpenText(path)) in ParseSamplesFile()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/ |
| D | SVDParser.cs | 22 public SVDParser(string path, IBusController parent) in SVDParser() argument 29 using(possibleGzip = File.OpenRead(path)) in SVDParser() 35 … possibleGzip = new GZipStream(File.OpenRead(path), CompressionMode.Decompress); in SVDParser() 36 path = TemporaryFilesManager.Instance.GetTemporaryFile(); in SVDParser() 37 using(var extractedFile = File.OpenWrite(path)) in SVDParser() 44 using(var stream = File.OpenRead(path)) in SVDParser() 81 …parent.Log(LogLevel.Info, "Loaded SVD: {0}. Name: {1}. Description: {2}.", path, device.Name, devi… in SVDParser() 354 var path = GetPath(node); in GetMandatoryField() 375 … var path = node.Element("name") != null ? node.Element("name").Value : $"<{node.Name.LocalName}>"; in GetPath() 384 path = $"{tmpNameElement.Value}.{path}"; in GetPath() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Sound/ |
| D | PCMDecoder.cs | 47 public void LoadFile(ReadFilePath path) in LoadFile() argument 53 using(var br = new BinaryReader(File.Open(path, FileMode.Open))) in LoadFile()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ |
| D | TranslationCPU_OpcodesCounting.cs | 77 public void SaveAllOpcodesCounters(string path) in SaveAllOpcodesCounters() argument 79 using(var outputFile = new StreamWriter(path)) in SaveAllOpcodesCounters()
|