aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-cpu.c
Commit message (Collapse)AuthorAge
* containers: added record parsingJonathan Herman2012-03-16
|
* rt-graph: time type abstracted outJonathan2012-03-08
|
* rt-graph: input to real-time plots is processed using real-time timestampsJonathan2012-03-08
| | | | | | | | | Each plot processes only the records which fit within the time window displayed. When passing records into a real-time plot, kernelshark will now decide if a record is within the current time window using real-time timestamps, instead of the old ftrace timestamps. This change also enables infinite zooming into the real-time plots.
* rt-graph: simple real-time task plotsJonathan2012-03-05
|
* rt-graph: real-time tasks can be added / removed from the graphJonathan2012-03-05
| | | | Currently they copy the functionality of regular task.
* rt-graph: Litmus events and tasks loaded on startupJonathan2012-03-05
|
* Fix address of the Free Software FoundationUwe Kleine-König2011-03-22
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Free last_record in cpu plot on restartSteven Rostedt2011-02-21
| | | | | | | The restart of drawing a cpu plot may still have a left over record. Free it before initializing a new drawing. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Free last_record in cpu plotSteven Rostedt2011-02-21
| | | | | | When destroying a CPU plot, make sure the last record is freed. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Make zooming in on CPU plots stay filledSteven Rostedt2010-09-17
| | | | | | | | | Currently when you zoom into a CPU plot, when there are no events in the viewable area, the line turns blank (as if it were just idle). This patch keeps the plot with a bar even if no events are visible. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Fix plots to show start bars in zoomed views.Steven Rostedt2010-09-17
| | | | | | | | | | | | Currently, if a zoomed view has events before the start of the view, those events are not examined to determine if the bar of a graph should be shown at the start. This patch adds code to the cpu and task plots to look for events that happened before the view to determine if a bar should be shown or not. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-plot: Fix filtering of event boxes in graphSteven Rostedt2010-06-18
| | | | | | | | | The graph was using the "orig_pid" to determine if it should display the box (process running) or not. But this only worked when we had sched events available. When schedule events were enabled, this would fail the tests. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Account for events not found in plotSteven Rostedt2010-06-16
| | | | | | | | | | | | | In the plot code, it is possible that an event exists in the data file that was not stored in the events log. This happened with the 2.6.35 kernel where some events had formats that were "TOO BIG" and that event format was not saved. But the events still existed in the trace.dat file. The plot code assumed that events were found and when they were not it crashed. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Revert need to free peek eventSteven Rostedt2010-06-08
| | | | | | | | Freeing records that were returned via "peek event" made things a bit more complex. Since the original code was written to determine that peek events should not be freed. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: make records refcountedJohannes Berg2010-05-25
| | | | | | | | | | | | | | | If a callback wants to hold on to a record, it can then increase the refcount and keep it. This is most likely to happen with the upcoming python plugin. Since the underlying data pages are already refcounted, we can just add a refcount to struct record (rather than having the error checking with the 'locked' member). Acked-by: Darren Hart <dvhltc@us.ibm.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
* trace-graph: Move reading sched switch comms into trace-graph.cSteven Rostedt2010-02-18
| | | | | | | | Move the reading of missed comms from sched_switch events from trace-plot-cpu.c into trace-graph.c into the sched_switch check itself. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Added CPU plotting menuSteven Rostedt2010-02-18
| | | | | | | | | Added menu for adding and removing CPU plots and Tasks. Only CPU updates have been implemented in this change set. Task updates will follow. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Relicense the library files under LGPLSteven Rostedt2010-02-15
| | | | | | | | | | | | | | | | | | | | All the files that are used to create the libraries: libparsevent and libtracecmd are converted to the LGPL as well as the files to create the plugins. All files now have a boilerplate header that states which license that the file is under. A README file is created as well as the COPYING.LIB which contains the text of the LGPL. All authors of the code that created these files have given their Acks. Acked-by: Darren Hart <dvhltc@us.ibm.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Fix uninitialized variables in CPU plot codeSteven Rostedt2010-02-11
| | | | Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Have the graph control the start stop recordsSteven Rostedt2010-02-10
| | | | | | | | | | Move the code from initializing the start cursor locations of the CPUs. Also control when a record is passed to the plot based on its timestamp. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Iterate over all records for all plotsSteven Rostedt2010-02-10
| | | | | | | | Change the code to iterate once down all records to create all plots. Use the cpu_hash, task_hash and all_recs to find what plot cares about what data. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Add hash to lookup pids and cpusSteven Rostedt2010-02-10
| | | | | | | | Add a hash in the graph info to quickly look up to see if plots have been registered to a pid or cpus. This is currently not used but will be in the following patches. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Add destructor routine to plot callbacksSteven Rostedt2010-02-10
| | | | | | | | | | Added a destructor routine to the plot callbacks to be called before the plot is destroyed. This allows the plot to clean up any resources that it allocated before it is freed. Also did some other minor clean ups and freeing. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Move display event info into plot structuresSteven Rostedt2010-02-10
| | | | | | | Move the code to show what to display into the plot sturctures. Have the plot structure determine what to show. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Add find_record to plots for popup windowsSteven Rostedt2010-02-10
| | | | | | | | The popup needs a record to use to determin if a task should be added to the filter or not. Add the method find_record to the plot callback structure. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Move what to plot into cpu specific fileSteven Rostedt2010-02-08
| | | | | | | | | | Move the decisions to what to plot into the cpu specific file. Now the trace-graph.c can just manange the drawing. The code to show the fly-over windows still needs to be made generic. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Move adjusting of graph to plot codeSteven Rostedt2010-02-08
| | | | | | | | | Make the adjustment of the graph into a plot callback. That is, start from the first plot and work down to see if the plot has an exact match and should be displayed in the graph viewable area (adjust scrollbar). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-graph: Start of graph_plot structureSteven Rostedt2010-02-08
This is a start of moving from plotting just the CPUs, but to move the code to a plot interface. This will eventually allow a line to just plot a task (on all CPUs). This first patch just sets up some of the infratructure, but still is tied to the CPU plots. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>