11.07.2015 Views

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When a client requests a new logging cycle, the client is added to the locallist and a new logging cycle is created. Comp<strong>on</strong>ents selected by the client areadded to the list of the logging cycle. When the cycle is successfully createdit gets started by the logging dispatcher. If the client sends a stop command<str<strong>on</strong>g>for</str<strong>on</strong>g> a logging cycle, the logging dispatcher checks the list and interrupts thecorresp<strong>on</strong>ding cycle. If a client got disc<strong>on</strong>nected while an logging cycle isactive, the logging dispatcher also interrupts the corresp<strong>on</strong>ding cycle (Figure5.9).(a) Execute a logging cycle(b) Interrupting a logging cycleFigure 5.9: Logging Dispatcher starting and stopping Logging Cycles- Diagram a shows the process of creating a new LoggingCycle by adding selected comp<strong>on</strong>ents and startingit. Diagram b describes how an active Logging Cycle isinterrupted via command of the client or when the clientis disc<strong>on</strong>nected.Logging Cycle - Writing Logging Output <strong>on</strong> DemandLogging cycles are designed to create logging files from the comp<strong>on</strong>ents of therobot. A logging cycle is a thread collecting data of multiple comp<strong>on</strong>ents witha frequency c<strong>on</strong>figured in the c<strong>on</strong>figurati<strong>on</strong> file. Each logging cycle is createdas thread which allows that multiple logging cycles are executed in parallel.The client can request available comp<strong>on</strong>ents to be logged from the probe.Figure 5.10: A Logging Cycle creating corresp<strong>on</strong>ding files - Eachreading cycle opens a new element with the current systemtimestamp. The data of each selected comp<strong>on</strong>entis read via the Comp<strong>on</strong>ent Holder. This process runs ina loop until it is interrupted by the Logging Dispatcher.If the Logging Cycle gets interrupted, the created documentis written to a file <strong>on</strong> the probes file system.29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!