This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Storing lists of CPU on/off times
- From: "Paddie O'Brien" <paddieobrien at gmail dot com>
- To: systemtap <systemtap at sourceware dot org>
- Date: Wed, 11 Jan 2017 17:24:38 +0000
- Subject: Storing lists of CPU on/off times
- Authentication-results: sourceware.org; auth=none
Hi,
I want to store a per process list of CPU on/off times. So in probe
scheduler.cpu_on I had hoped to do something like:
timestamps[execname()][count] = gettimeofday_us()
count++
This above is illegal but illustrates what I'm trying to do. Can it be done?
Thanks.