[LITMUS^RT] Question about how to set task's release time in the base_task.c

Glenn Elliott gelliott at cs.unc.edu
Mon Oct 8 22:57:30 CEST 2012


> Hi all,
> 
> I want to run a task set in LITMUS. For each task in the task set, I want to assign an absolute time for it to release its 1st job. By doing that, I can record each job's response time and determine if the task misses its deadline or not. 
> 
> I looked around in the liblitmus folder, but didn't find any function that can assign a release time for the task. 
> 
> I found the release time of a task is assigned in release_at() in the litmus-rt/litmus/job.c file.  
> But I still don't know how to assign the task's release time inside the base_task.c file?
> 
> Can anyone help me?
> 
> Thank you very much for your time in this question!
> 
> Best Regards,
> 
> Meng XU


Hi Meng,

Depending upon how you are doing your processing, you may not need to use specific release times.  Litmus can be configured to log job release and completion times.  There is no need to make these measurements from the user-space.

To get logging support, make sure "CONFIG_SCHED_TASK_TRACE=y" in your kernel's .config file.  See "Recording Scheduling Traces" here: https://wiki.litmus-rt.org/litmus/Tracing

-Glenn





More information about the litmus-dev mailing list