Misc changes to xentrace_format
cover Misc changes to xentrace_format
From: Andrii Anisov <[email protected]>
Make xentrace_format more convinient and up to date in usage.
Andrii Anisov (5):
xentrace_format: print timestamps in nanoseconds
xentrace_format: switch mhz option to float
xentrace_format: combine 64-bit LE values from traces
formats: allign trace record format to the current code
formats: print time values as decimals
tools/xentrace/formats | 6 +++--- tools/xentrace/xentrace_format | 35 +++++++++++++++++++++++++++-------- 2 files changed, 30 insertions(+), 11 deletions(-)
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/5 xentrace_format: print timestamps in nanoseconds
From: Andrii Anisov <[email protected]>
--- tools/xentrace/xentrace_format | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
tools/xentrace/xentrace_format +6 -2
@@ -8,7 +8,11 @@ import re, sys, string, signal, struct, os, getopt def usage(): print >> sys.stderr, \ - "Usage: " + sys.argv[0] + """ defs-file + "Usage: " + sys.argv[0] + """ [-c mhz] defs-file + -c mhz optional time stamps values generator frequency in + MHz. If specified, timestamps are shown in ns, + otherwise in cycles. + Parses trace data in binary format, as output by Xentrace and reformats it according to the rules in a file of definitions. The rules in this file should have the format ({ and } show grouping
@@ -223,7 +227,7 @@ while not interrupted: last_tsc[cpu] = tsc if mhz: - tsc = tsc / (mhz*1000000.0) + tsc = tsc * 1000.0 / mhz args = {'cpu' : cpu, 'tsc' : tsc,
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Quoted 1 line · Andrii Anisov
From: Andrii Anisov <[email protected]>
The title here makes it seem like you're introducing new functionality, when in fact you're just documenting and tweaking existing functionality.
The description should be something like:
---xentrace_format: Document -c option (change timestamps to seconds)
xentrace_format already has an option to set a cpu processor speed by which to interpret the tsc values. Document it.
While here, change the formula for this calculation so that <reason here>.
---
Which of course leads me to...
Quoted 23 lines
Signed-off-by Andrii Anisov <[email protected]>--- tools/xentrace/xentrace_format | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)tools/xentrace/xentrace_format +5
-1@@ -8,7 +8,11 @@ import re, sys, string, signal, struct, os, getopt def usage(): print >> sys.stderr, \ - "Usage: " + sys.argv[0] + """ defs-file + "Usage: " + sys.argv[0] + """ [-c mhz] defs-file + -c mhz optional time stamps values generator frequency in + MHz. If specified, timestamps are shown in ns, + otherwise in cycles. + Parses trace data in binary format, as output by Xentrace and reformats it according to the rules in a file of definitions. The rules in this file should have the format ({ and } show grouping
tools/xentrace/xentrace_format while not interrupted: · line 230
Quoted 5 lines
tools/xentrace/xentrace_format +1
-1@@ -223,7 +227,7 @@ while not interrupted: last_tsc[cpu] = tsc if mhz: - tsc = tsc / (mhz*1000000.0) + tsc = tsc * 1000.0 / mhz
Why do you prefer this?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Hello George,
Quoted 4 lines · George Dunlap
tools/xentrace/xentrace_format while not interrupted: · line 230
Quoted 3 lines
if mhz:
tools/xentrace/xentrace_format +1
-1- tsc = tsc / (mhz*1000000.0) + tsc = tsc * 1000.0 / mhzWhy do you prefer this?
I'm playing with scheduling from one hand, so time stamps in seconds does not give understanding about what's going on.
From other hand I'm quite confused about how useful timestamps in seconds could be for traces. As per my understanding, tracer should be useful for debugging some rapidly changing processes.
Signature · 8 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Quoted 7 lines · Andrii Anisov
Hello George,
Quoted 3 lines · George Dunlap
Quoted 3 lines
if mhz:
- tsc = tsc / (mhz*1000000.0)
+ tsc = tsc * 1000.0 / mhz
Quoted 6 lines
Quoted 1 line
Why do you prefer this?
I'm playing with scheduling from one hand, so time stamps in seconds does not give understanding about what's going on.
From other hand I'm quite confused about how useful timestamps in seconds could be for traces. As per my understanding, tracer should be useful for debugging some rapidly changing processes.
Oh, sorry -- I missed the point of this patch.
---xentrace_format: print timestamps in nanoseconds
...rather than seconds. Having timestamps for rapidly-occurring events in nanoseconds makes it easier to understand what's going on.
While here, document the -c option.
---
What I do in xenalyze is to have the timestamps in seconds, but always print down to the nanosecond. (For this I actually break cpu cycles into s and ns separately, and then print "%u.%09u".)
But this is also fine with me.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Quoted 15 lines · George Dunlap
Quoted 7 lines · Andrii Anisov
Hello George,
Quoted 3 lines · George Dunlap
Quoted 3 lines
if mhz:
- tsc = tsc / (mhz*1000000.0)
+ tsc = tsc * 1000.0 / mhzQuoted 6 lines
Quoted 1 line
Why do you prefer this?
I'm playing with scheduling from one hand, so time stamps in seconds does not give understanding about what's going on.
From other hand I'm quite confused about how useful timestamps in seconds could be for traces. As per my understanding, tracer should be useful for debugging some rapidly changing processes.
Quoted 6 lines
Oh, sorry -- I missed the point of this patch.
---
xentrace_format: print timestamps in nanoseconds...rather than seconds.
This should rather say, "..rather than seconds, when the clock speed is specified."
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
In reply to George DunlapQuoted 3 lines · George Dunlap
What I do in xenalyze is to have the timestamps in seconds, but always print down to the nanosecond. (For this I actually break cpu cycles into s and ns separately, and then print "%u.%09u".)
Here, we can have the same. With the 0current formula in xentrace_format, but changing %(tsc)d to %(tsc).9f in formats. BTW, I've just noticed, that reltsc is allways in cycles. And it seems odd, as well.
Signature · 7 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Quoted 9 lines · Andrii Anisov
Quoted 3 lines · George Dunlap
What I do in xenalyze is to have the timestamps in seconds, but always print down to the nanosecond. (For this I actually break cpu cycles into s and ns separately, and then print "%u.%09u".)
Here, we can have the same. With the 0current formula in
xentrace_format, but changing%(tsc)dto%(tsc).9fin formats. BTW, I've just noticed, that reltsc is allways in cycles. And it seems odd, as well.
FYI, I never use xentrace_format; as far as I'm concerned it's been made obsolete by xenalyze, and if it were up to me I'd remove it from the tree. Lots of people seem to find it useful, so I review patches. But I really care very little about what its functionality ends up being.
So feel free to propose whatever patches you want; I have very little opinion, as long as it keeps working. :-)
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Quoted 9 lines · George Dunlap
Quoted 8 lines · Andrii Anisov
Quoted 5 lines · George Dunlap
What I do in xenalyze is to have the timestamps in seconds, but always
print down to the nanosecond. (For this I actually break cpu cycles
into s and ns separately, and then print "%u.%09u".)
Quoted 3 lines
Quoted 3 lines
Here, we can have the same. With the 0current formula in
xentrace_format, but changing%(tsc)dto%(tsc).9fin formats.
Sorry, I'm not sure I'm getting this properly. When you say "with the current formula", do you mean before or after this series?
IAC, changing the default format file that we ship so that it prints time in the format seconds.nanoseconds (if CPU speed is specified), would be nice IMO.
Quoted 5 lines
FYI, I never use
xentrace_format; as far as I'm concerned it's been made
obsolete by xenalyze, and if it were up to me I'd remove it from the tree. Lots of people seem to find it useful, so I review patches.
I almost entirely concur. As said already, the one reason why I think it still could be useful, and we should keep it, is that the way a trace will look like can be changed or tweaked rather easily, and without having to recompile anything, via the formats file, which is rather cool. :-)
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
Hello Dario,
Quoted 2 lines · Dario Faggioli
Sorry, I'm not sure I'm getting this properly. When you say "with the current formula", do you mean before or after this series?
I did mean the formula existing before this series.
Quoted 3 lines
IAC, changing the default format file that we ship so that it prints time in the format seconds.nanoseconds (if CPU speed is specified), would be nice IMO.
On the second though I realized it is quite inconvenient. From the formats file we can't distinguish if tsc contains float sec.ns or integer cycles. For cycles it will look like following:
CPU0 1090699305.000000000 (+ 336) rtds:tickle [ cpu = 0 ]
Quoted 5 lines
As said already, the one reason why I think
it still could be useful, and we should keep it, is that the way a trace will look like can be changed or tweaked rather easily, and without having to recompile anything, via the formats file, which is rather cool. :-)
+1
Signature · 8 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 1/5] xentrace_format: print timestamps in nanoseconds
In reply to George DunlapHello George,
Quoted 4 lines · George Dunlap
FYI, I never use
xentrace_format; as far as I'm concerned it's been made obsolete by xenalyze, and if it were up to me I'd remove it from the tree. Lots of people seem to find it useful, so I review patches. But I really care very little about what its functionality ends up being.
Anyway, thank you for your review.
Signature · 8 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/5 xentrace_format: switch mhz option to float
In reply to Andrii AnisovFrom: Andrii Anisov <[email protected]>
In some systems fraction of the MHz might be a meaningful part of the cycles frequency value. So accept MHz value as float.
--- tools/xentrace/xentrace_format | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tools/xentrace/xentrace_format +3 -3
@@ -11,7 +11,7 @@ def usage(): "Usage: " + sys.argv[0] + """ [-c mhz] defs-file -c mhz optional time stamps values generator frequency in MHz. If specified, timestamps are shown in ns, - otherwise in cycles. + otherwise in cycles. Accepts float. Parses trace data in binary format, as output by Xentrace and reformats it according to the rules in a file of definitions. The
@@ -65,7 +65,7 @@ def sighand(x,y): ##### Main code -mhz = 0 +mhz = 0.0 if len(sys.argv) < 2: usage()
@@ -74,7 +74,7 @@ try: opts, arg = getopt.getopt(sys.argv[1:], "c:" ) for opt in opts: - if opt[0] == '-c' : mhz = int(opt[1]) + if opt[0] == '-c' : mhz = float(opt[1]) except getopt.GetoptError: usage()
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/5] xentrace_format: switch mhz option to float
Quoted 6 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
In some systems fraction of the MHz might be a meaningful part of the cycles frequency value. So accept MHz value as float.
Signed-off-by Andrii Anisov <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 3/5 xentrace_format: combine 64-bit LE values from traces
In reply to Andrii AnisovFrom: Andrii Anisov <[email protected]>
In order to be able to print possible 64bit LE values from trace records, precombine possible variants.
--- tools/xentrace/xentrace_format | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-)
tools/xentrace/xentrace_format +19 -4
@@ -26,9 +26,11 @@ def usage(): will output in hexadecimal and 'o' will output in octal ] Which correspond to the CPU number, event ID, timestamp counter and - the 7 data fields from the trace record. There should be one such - rule for each type of event. - + the 7 data fields from the trace record. Also combined 64bit LE + fields are available. E.g. %(21)d is a decimal representation of a + 64bit LE value placed as the first element of the trace record. + There should be one such rule for each type of event. + Depending on your system and the volume of trace buffer data, this script may not be able to keep up with the output of xentrace if it is piped directly. In these circumstances you should have
@@ -185,6 +187,13 @@ while not interrupted: break (d1, d2, d3, d4, d5, d6, d7) = struct.unpack(D7REC, line) + d21 = (d2 << 32) | (0x00000000ffffffff & d1) + d32 = (d3 << 32) | (0x00000000ffffffff & d2) + d43 = (d4 << 32) | (0x00000000ffffffff & d3) + d54 = (d5 << 32) | (0x00000000ffffffff & d4) + d65 = (d6 << 32) | (0x00000000ffffffff & d5) + d76 = (d7 << 32) | (0x00000000ffffffff & d6) + # Event field is 28bit of 'uint32_t' in header, not 'long'. event &= 0x0fffffff if event == 0x1f003:
@@ -239,7 +248,13 @@ while not interrupted: '4' : d4, '5' : d5, '6' : d6, - '7' : d7 } + '7' : d7, + '21' : d21, + '32' : d32, + '43' : d43, + '54' : d54, + '65' : d65, + '76' : d76 } try:
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 3/5] xentrace_format: combine 64-bit LE values from traces
Quoted 4 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
In order to be able to print possible 64bit LE values from trace records, precombine possible variants.
I like the idea; but what does 'LE' mean in this context?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 3/5] xentrace_format: combine 64-bit LE values from traces
Hello George,
Quoted 1 line · George Dunlap
I like the idea; but what does 'LE' mean in this context?
Little endian. Most significant 32bit word is at a higher index in the array.
Signature · 7 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 3/5] xentrace_format: combine 64-bit LE values from traces
Quoted 10 lines · Andrii Anisov
Hello George,
Quoted 1 line · George Dunlap
I like the idea; but what does 'LE' mean in this context?
Little endian. Most significant 32bit word is at a higher index in the
array.
I did get it, but it took it a little bit, and a couple of re-reads. I guess, just use 'little endian' (both in changelog and in the code)?
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 4/5 formats: allign trace record format to the current code
In reply to Andrii AnisovFrom: Andrii Anisov <[email protected]>
Allign rtds:repl_budget trace record format to the current code.
--- tools/xentrace/formats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xentrace/formats +1 -1
@@ -75,7 +75,7 @@ 0x00022801 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:tickle [ cpu = %(1)d ] 0x00022802 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:runq_pick [ dom:vcpu = 0x%(1)08x, cur_deadline = 0x%(3)08x%(2)08x, cur_budget = 0x%(5)08x%(4)08x ] 0x00022803 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:burn_budget [ dom:vcpu = 0x%(1)08x, cur_budget = 0x%(3)08x%(2)08x, delta = %(4)d ] -0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, cur_deadline = 0x%(3)08x%(2)08x, cur_budget = 0x%(5)08x%(4)08x ] +0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, priority_level = %(2)d, cur_deadline = 0x%(4)08x%(3)08x, cur_budget = 0x%(6)08x%(5)08x ] 0x00022805 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:sched_tasklet 0x00022806 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:schedule [ cpu[16]:tasklet[8]:idle[4]:tickled[4] = %(1)08x ]
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 4/5] formats: allign trace record format to the current code
I'll let Dario review this one; one comment:
Quoted 3 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
Allign rtds:repl_budget trace record format to the current code.
s/allign/align/g;
Otherwise:
-G
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 4/5] formats: allign trace record format to the current code
In reply to Andrii AnisovQuoted 4 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
Allign rtds:repl_budget trace record format to the current code.
Right.
This is (most likely) my fault. Sorry :-P
Quoted 2 lines
Signed-off-by Andrii Anisov <[email protected]>
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 5/5 formats: print time values as decimals
In reply to Andrii AnisovFrom: Andrii Anisov <[email protected]>
For convinience, print RTDS budget and deadline values as decimals.
--- tools/xentrace/formats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tools/xentrace/formats +3 -3
@@ -73,9 +73,9 @@ 0x00022216 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) csched2:runq_cand_chk [ dom:vcpu = 0x%(1)08x ] 0x00022801 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:tickle [ cpu = %(1)d ] -0x00022802 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:runq_pick [ dom:vcpu = 0x%(1)08x, cur_deadline = 0x%(3)08x%(2)08x, cur_budget = 0x%(5)08x%(4)08x ] -0x00022803 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:burn_budget [ dom:vcpu = 0x%(1)08x, cur_budget = 0x%(3)08x%(2)08x, delta = %(4)d ] -0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, priority_level = %(2)d, cur_deadline = 0x%(4)08x%(3)08x, cur_budget = 0x%(6)08x%(5)08x ] +0x00022802 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:runq_pick [ dom:vcpu = 0x%(1)08x, cur_deadline = %(32)20d, cur_budget = %(54)20d ] +0x00022803 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:burn_budget [ dom:vcpu = 0x%(1)08x, cur_budget = %(32)20d, delta = %(4)d ] +0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, priority_level = %(2)d, cur_deadline = %(43)20d, cur_budget = %(65)20d ] 0x00022805 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:sched_tasklet 0x00022806 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:schedule [ cpu[16]:tasklet[8]:idle[4]:tickled[4] = %(1)08x ]
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 5/5] formats: print time values as decimals
Quoted 5 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
For convinience, print RTDS budget and deadline values as decimals.
Signed-off-by Andrii Anisov <[email protected]>
Quoted 12 lines
--- tools/xentrace/formats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)tools/xentrace/formats +0
-0@@ -73,9 +73,9 @@ 0x00022216 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) csched2:runq_cand_chk [ dom:vcpu = 0x%(1)08x ]
tools/xentrace/formats line 81
Quoted 10 lines
tools/xentrace/formats +3
-30x00022801 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:tickle [ cpu = %(1)d ] -0x00022802 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:runq_pick [ dom:vcpu = 0x%(1)08x, cur_deadline = 0x%(3)08x%(2)08x, cur_budget = 0x%(5)08x%(4)08x ] -0x00022803 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:burn_budget [ dom:vcpu = 0x%(1)08x, cur_budget = 0x%(3)08x%(2)08x, delta = %(4)d ] -0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, priority_level = %(2)d, cur_deadline = 0x%(4)08x%(3)08x, cur_budget = 0x%(6)08x%(5)08x ] +0x00022802 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:runq_pick [ dom:vcpu = 0x%(1)08x, cur_deadline = %(32)20d, cur_budget = %(54)20d ] +0x00022803 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:burn_budget [ dom:vcpu = 0x%(1)08x, cur_budget = %(32)20d, delta = %(4)d ] +0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, priority_level = %(2)d, cur_deadline = %(43)20d, cur_budget = %(65)20d ] 0x00022805 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:sched_tasklet 0x00022806 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:schedule [ cpu[16]:tasklet[8]:idle[4]:tickled[4] = %(1)08x ]
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Dario Faggioli
Reviewed-byRe: [PATCH 5/5] formats: print time values as decimals
Quoted 5 lines · George Dunlap
Quoted 4 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
For convinience, print RTDS budget and deadline values as decimals.
I agree, this is a lot better.
Quoted 4 lines
Quoted 1 line
Signed-off-by Andrii Anisov <[email protected]>Acked-by George Dunlap <[email protected]>
Not strictly necessary, I now. Still:
Andrii, if you decide to make the patch that turns timestamps into secs.nsecs, can we also convert these to such format (again, in case we have MHz)?
Or, in general, what I think would be useful, is to have the timestamps and the scheduling parameters in the same domain (when possible).
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 5/5] formats: print time values as decimals
Quoted 1 line · Dario Faggioli
Reviewed-by Dario Faggioli <[email protected]>
Thank you.
Quoted 3 lines
Andrii, if you decide to make the patch that turns timestamps into secs.nsecs, can we also convert these to such format (again, in case we have MHz)?
I plan to do the patch. I'll keep this mind.
Quoted 2 lines
Or, in general, what I think would be useful, is to have the timestamps and the scheduling parameters in the same domain (when possible).
As I understand, now we do have among scheduling parameters:
- credit's tsclice in ms, rlimit in us, migration delay in us
- rtds'es period and budget in us.
I do not think it worth to add more zeros to those parameters for converting them to ns.
IMHO trimming timestamps from ns would not be accepted, as well.
Signature · 8 lines
*Andrii Anisov* _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 5/5] formats: print time values as decimals
Quoted 6 lines · Andrii Anisov
Quoted 4 lines · Dario Faggioli
Or, in general, what I think would be useful, is to have the timestamps
and the scheduling parameters in the same domain (when possible).
Quoted 7 lines
As I understand, now we do have among scheduling parameters:
- credit's tsclice in ms, rlimit in us, migration delay in us
- rtds'es period and budget in us.I do not think it worth to add more zeros to those parameters for converting them to ns.
We're still speaking only about printing right? IAC, you're right, me saying "scheduling parameters" was a bit too generic.
What I care is to be able to, when looking at a trace, compare/relate the time at which a particular event occurred (i.e., the timestamps) with budget and absolute deadlines --as far as RTDS is concern-- and with credits --as far as Credit 1 and 2 are concerned (and also with remaining cap budget, for Credit2).
In fact, that is what you need to fiddle with, in order to understand whether events are occurring when they are supposed to.
Those other global and (almost) never changing parameters you're mentioning, are less of a concern, and we can print it in whatever time unit we want (as far as it's possible to tell which one).
Quoted 2 lines
IMHO trimming timestamps from ns would not be accepted, as well.
No, let's _not_ do that! :-D
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Software Engineer @ SUSE https://www.suse.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel