基于证人生成的查询排序算法的最坏执行时间计算
Worst-Case Execution Time Calculation for Query-Based Monitors by Witness Generation
摘要:
网络监测在现代智能网络物理系统的保证中发挥着关键作用,这些系统通常是数据密集型和安全关键型的。虽然图形查询可以作为一种表达性强但形式上精确的规约语言来捕获感兴趣的安全属性,但对于这种自动生成的运行时监控程序没有及时性保证,这阻止了它们在实时设置中的使用。虽然由现有静态WCET估计技术导出的最坏情况执行时间(WCET)界限是安全的,但它们可能不紧,因为它们无法利用关于输入模型的域特定(语义)信息。本文提出了一种语义感知的WCET分析方法,数据驱动的监测程序派生的图查询。该方法将从低级别的时序分析得到的结果纳入现代图形求解器的目标函数。这允许系统地生成高达指定大小的输入图模型(称为见证模型),对于该输入图模型,监视器预期花费最多时间来完成。因此,这些图上的监视器的估计执行时间可以被认为是安全和严格的WCET。此外,我们进行了一组实验,基于查询的程序运行在一个实时平台上的一组生成的模型,以调查执行时间和他们的估计之间的关系,并比较WCET估计产生的方法与结果从两个著名的定时分析器,aiT和OTAWA。
英文摘要:
Runtime monitoring plays a key role in the assurance of modern intelligent cyber-physical systems, which are frequently data-intensive and safety-critical. While graph queries can serve as an expressive yet formally precise specification language to capture the safety properties of interest, there are no timeliness guarantees for such auto-generated runtime monitoring programs, which prevents their use in a real-time setting. While worst-case execution time (WCET) bounds derived by existing static WCET estimation techniques are safe, they may not be tight as they are unable to exploit domain-specific (semantic) information about the input models. This paper presents a semantic-aware WCET analysis method for data-driven monitoring programs derived from graph queries. The method incorporates results obtained from low-level timing analysis into the objective function of a modern graph solver. This allows the systematic generation of input graph models up to a specified size (referred to as witness models) for which the monitor is expected to take the most time to complete. Hence the estimated execution time of the monitors on these graphs can be considered as safe and tight WCET. Additionally, we perform a set of experiments with query-based programs running on a real-time platform over a set of generated models to investigate the relationship between execution times and their estimates, and compare WCET estimates produced by our approach with results from two well-known timing analyzers, aiT and OTAWA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。