分享到plurk 分享到twitter 分享到facebook

版本 6ae0ede0ed312329a54138237acb1978d309a043

embedded/Lab12

Changes from 6ae0ede0ed312329a54138237acb1978d309a043 to current

---
title: Lab12: RTOS Visualization
toc: no
...

預期目標
-------
- 延展過去幾次的實驗與作業,設計出一個具體而微的 FreeRTOS 視覺化機制
- 學習 Grasp 視覺化工具

Grasp
-------
- Understanding and validating the timing behavior of real-time systems is not trivial.
- Many real-time operating systems and their development environments do not provide tracing support, and provide only limited visualization, measurements and analysis tools.
- [Grasp](http://www.win.tue.nl/san/grasp/) is a tool for tracing, visualizing and measuring the behavior of real-time systems. It provides a simple plugin infrastructure for extending Grasp with custom visualization and measurement methods.
- PDF: [Grasp: Tracing, Visualizing and Measuring the Behavior of Real-Time Systems](http://www.win.tue.nl/~mholende/publications/Holenderski2010.pdf)

- mutex 視覺化輸出

![Image](/embedded/Lab12/mutex.png)
![](/embedded/Lab12/mutex.png)

- RTOS scheduling 視覺化輸出

![Image](/embedded/Lab12/hsf.png)
![](/embedded/Lab12/hsf.png)

作業
-------
- 適度修改 Lab-12/freertos 目錄底下的檔案,以 [Grasp](http://www.win.tue.nl/san/grasp/) 重新實作視覺化機制
   * 需要包含 context-switch
   * 需要包含 mutex 的視覺化

- 可參考 Grasp Recorder 的 instrumentation,以便在 FreeRTOS 作事件紀錄
- 程式碼一律提交到 Git repository,操作方式請參考 [Lab-11](/embedded/Lab11)
   * ``make gdbauto`` 時,應該要產生 ``sched.grasp`` 檔案

繳交作業
-------
- 截止日期:
   * 成大/中正: Apr 12, 2013 (含) 之前

- 寄件到 <jserv.tw@gmail.com>
  - 標題: 
    * 成大: "[NCKU/Lab12]" 開頭,後面加學號與姓名
    * 中正: "[CCU/Lab12]" 開頭,後面加學號與姓名
    * 格式不合者,不計分!

- 信件內應該描述開發的想法、面臨的技術問題以及如何克服
- 以及關於 context-swicth / mutex 的畫面輸出