Further trace improvements
cover Further trace improvements
Some further trace improvements:
- Remove the need to specify --svm-mode every time running xenalyze on a trace generated on an AMD box.
- Get rid of warnings due to unhandled HVM_EMUL traces
- Completely remove obsolete xentrace_format
This series is meant to be applied on top of Andy's series "xen/trace:
Treewide API cleanup":
https://lore.kernel.org/xen-devel/[email protected]/
George Dunlap (3):
x86/hvm/trace: Use a different trace type for AMD processors tools/xenalyze: Ignore HVM_EMUL events harder tools/xentrace: Remove xentrace_format
docs/man/xentrace.8.pod | 5 +- docs/man/xentrace_format.1.pod | 46 ------ tools/xentrace/Makefile | 3 - tools/xentrace/formats | 229 ---------------------------- tools/xentrace/xenalyze.c | 50 ++++--- tools/xentrace/xentrace.c | 2 +- tools/xentrace/xentrace_format | 264 --------------------------------- xen/arch/x86/hvm/svm/svm.c | 4 +- xen/arch/x86/hvm/vmx/vmx.c | 4 +- xen/include/public/trace.h | 6 +- 10 files changed, 41 insertions(+), 572 deletions(-) delete mode 100644 docs/man/xentrace_format.1.pod delete mode 100644 tools/xentrace/formats delete mode 100644 tools/xentrace/xentrace_format
Signature · 1 line
2.25.1
PATCH 1/3 x86/hvm/trace: Use a different trace type for AMD processors
A long-standing usability sub-optimality with xenalyze is the necessity to specify --svm-mode when analyzing AMD processors. This fundamentally comes about because the same trace event ID is used for both VMX and SVM, but the contents of the trace must be interpreted differently.
Instead, allocate separate trace events for VMX and SVM vmexits in Xen; this will allow all readers to properly intrepret the meaning of the vmexit reason.
In xenalyze, first remove the redundant call to init_hvm_data(); there's no way to get to hvm_vmexit_process() without it being already initialized by the set_vcpu_type call in hvm_process().
Replace this with set_hvm_exit_reson_data(), and move setting of hvm->exit_reason_* into that function.
Modify hvm_process and hvm_vmexit_process to handle all four potential values appropriately.
If SVM entries are encountered, set opt.svm_mode so that other SVM-specific functionality is triggered.
Also add lines in formats for xentrace_format.
---
NB that this patch goes on top of Andrew's trace cleanup series:
https://lore.kernel.org/xen-devel/[email protected]/
--- tools/xentrace/formats | 6 ++++-- tools/xentrace/xenalyze.c | 32 +++++++++++++++++++------------- xen/arch/x86/hvm/svm/svm.c | 4 ++-- xen/arch/x86/hvm/vmx/vmx.c | 4 ++-- xen/include/public/trace.h | 6 ++++-- 5 files changed, 31 insertions(+), 21 deletions(-)
tools/xentrace/formats +4 -2
@@ -90,8 +90,10 @@ 0x00041002 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) domain_destroy [ dom = 0x%(1)08x ] 0x00081001 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) VMENTRY -0x00081002 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) VMEXIT [ exitcode = 0x%(1)08x, rIP = 0x%(2)08x ] -0x00081102 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) VMEXIT [ exitcode = 0x%(1)08x, rIP = 0x%(3)08x%(2)08x ] +0x00081002 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) VMX_EXIT [ exitcode = 0x%(1)08x, rIP = 0x%(2)08x ] +0x00081102 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) VMX_EXIT [ exitcode = 0x%(1)08x, rIP = 0x%(3)08x%(2)08x ] +0x00081003 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) SVM_EXIT [ exitcode = 0x%(1)08x, rIP = 0x%(2)08x ] +0x00081103 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) SVM_EXIT [ exitcode = 0x%(1)08x, rIP = 0x%(3)08x%(2)08x ] 0x00081401 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) nVMENTRY 0x00081402 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) nVMEXIT [ exitcode = 0x%(1)08x, rIP = 0x%(2)08x ] 0x00081502 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) nVMEXIT [ exitcode = 0x%(1)08x, rIP = 0x%(3)08x%(2)08x ]
tools/xentrace/xenalyze.c +19 -13
@@ -1437,14 +1437,6 @@ void init_hvm_data(struct hvm_data *h, struct vcpu_data *v) { h->init =1 ; -if (opt.svm_mode) { - h->exit_reason_max =HVM_SVM_EXIT_REASON_MAX ; - h->exit_reason_name = hvm_svm_exit_reason_name; - }else { - h->exit_reason_max =HVM_VMX_EXIT_REASON_MAX ; - h->exit_reason_name = hvm_vmx_exit_reason_name; - } -if (opt.histogram_interrupt_eip) {int count = ((1ULL <<ADDR_SPACE_BITS )/opt.histogram_interrupt_increment);size_t size = count *sizeof (int );
@@ -1462,6 +1454,18 @@ void init_hvm_data(struct hvm_data *h, struct vcpu_data *v) { h->summary.guest_interrupt[i].count=0 ; } +void set_hvm_exit_reason_data (struct hvm_data *h,unsigned event) { +if (((event & ~TRC_64_FLAG ) ==TRC_HVM_SVM_EXIT ) || + opt.svm_mode) { + opt.svm_mode =1 ; + h->exit_reason_max =HVM_SVM_EXIT_REASON_MAX ; + h->exit_reason_name = hvm_svm_exit_reason_name; + }else { + h->exit_reason_max =HVM_VMX_EXIT_REASON_MAX ; + h->exit_reason_name = hvm_vmx_exit_reason_name; + } +} +/* PV data */ enum {PV_HYPERCALL =1 ,
@@ -5088,13 +5092,13 @@ void hvm_vmexit_process(struct record_info *ri, struct hvm_data *h, r = (typeof (r ))ri->d; -if (!h->init) -init_hvm_data (h, v); +if (!h->exit_reason_name) +set_hvm_exit_reason_data (h, ri->event); h->vmexit_valid=1 ;bzero (&h->inflight,sizeof (h->inflight)); -if (ri->event ==TRC_HVM_VMEXIT64 ) { +if (ri->event &TRC_64_FLAG ) {if (v->guest_paging_levels !=4 ) {if ( verbosity >=6 )
@@ -5316,8 +5320,10 @@ void hvm_process(struct pcpu_info *p)break ;default :switch (ri->event) { -case TRC_HVM_VMEXIT : -case TRC_HVM_VMEXIT64 : +case TRC_HVM_VMX_EXIT : +case TRC_HVM_VMX_EXIT64 : +case TRC_HVM_SVM_EXIT : +case TRC_HVM_SVM_EXIT64 :UPDATE_VOLUME (p, hvm[HVM_VOL_VMEXIT ], ri->size);hvm_vmexit_process (ri, h, v);break ;
xen/arch/x86/hvm/svm/svm.c +2 -2
@@ -2571,10 +2571,10 @@ void asmlinkage svm_vmexit_handler(void) exit_reason = vmcb->exitcode;if (hvm_long_mode_active (v) ) -TRACE_TIME (TRC_HVM_VMEXIT64 | (vcpu_guestmode ?TRC_HVM_NESTEDFLAG :0 ), +TRACE_TIME (TRC_HVM_SVM_EXIT64 | (vcpu_guestmode ?TRC_HVM_NESTEDFLAG :0 ), exit_reason, regs->rip, regs->rip >>32 );else -TRACE_TIME (TRC_HVM_VMEXIT | (vcpu_guestmode ?TRC_HVM_NESTEDFLAG :0 ), +TRACE_TIME (TRC_HVM_SVM_EXIT | (vcpu_guestmode ?TRC_HVM_NESTEDFLAG :0 ), exit_reason, regs->eip);if ( vcpu_guestmode )
xen/arch/x86/hvm/vmx/vmx.c +2 -2
@@ -4105,9 +4105,9 @@ void asmlinkage vmx_vmexit_handler(struct cpu_user_regs *regs)__vmread (VM_EXIT_REASON , &exit_reason);if (hvm_long_mode_active (v) ) -TRACE_TIME (TRC_HVM_VMEXIT64 , exit_reason, regs->rip, regs->rip >>32 ); +TRACE_TIME (TRC_HVM_VMX_EXIT64 , exit_reason, regs->rip, regs->rip >>32 );else -TRACE_TIME (TRC_HVM_VMEXIT , exit_reason, regs->eip); +TRACE_TIME (TRC_HVM_VMX_EXIT , exit_reason, regs->eip);perfc_incra (vmexits, (uint16_t )exit_reason);
xen/include/public/trace.h +4 -2
@@ -178,8 +178,10 @@/* trace events per subclass */ #define TRC_HVM_NESTEDFLAG (0x400)#define TRC_HVM_VMENTRY (TRC_HVM_ENTRYEXIT + 0x01) -#define TRC_HVM_VMEXIT (TRC_HVM_ENTRYEXIT + 0x02) -#define TRC_HVM_VMEXIT64 (TRC_HVM_ENTRYEXIT + TRC_64_FLAG + 0x02) +#define TRC_HVM_VMX_EXIT (TRC_HVM_ENTRYEXIT + 0x02) +#define TRC_HVM_VMX_EXIT64 (TRC_HVM_ENTRYEXIT + TRC_64_FLAG + 0x02) +#define TRC_HVM_SVM_EXIT (TRC_HVM_ENTRYEXIT + 0x03) +#define TRC_HVM_SVM_EXIT64 (TRC_HVM_ENTRYEXIT + TRC_64_FLAG + 0x03)#define TRC_HVM_PF_XEN (TRC_HVM_HANDLER + 0x01)#define TRC_HVM_PF_XEN64 (TRC_HVM_HANDLER + TRC_64_FLAG + 0x01)#define TRC_HVM_PF_INJECT (TRC_HVM_HANDLER + 0x02)
Signature · 1 line
2.25.1
Re: [PATCH 1/3] x86/hvm/trace: Use a different trace type for AMD processors
Quoted 8 lines · George Dunlap
A long-standing usability sub-optimality with xenalyze is the necessity to specify
--svm-modewhen analyzing AMD processors. This fundamentally comes about because the same trace event ID is used for both VMX and SVM, but the contents of the trace must be interpreted differently.Instead, allocate separate trace events for VMX and SVM vmexits in Xen; this will allow all readers to properly intrepret the meaning of
interpret ?
Quoted 6 lines
the vmexit reason.
In xenalyze, first remove the redundant call to
init_hvm_data(); there's no way to get tohvm_vmexit_process()without it being already initialized by theset_vcpu_typecall inhvm_process().
Quoted 8 lines
Replace this with
set_hvm_exit_reson_data(), and move setting of hvm->exit_reason_* into that function.Modify
hvm_processandhvm_vmexit_processto handle all four potential values appropriately.If SVM entries are encountered, set opt.svm_mode so that other SVM-specific functionality is triggered.
Given that xenalyze is now closely tied to Xen, and that we're technically changing the ABI here, is there any point keeping --svm-mode ?
I'm unsure of the utility of reading the buggy trace records from an older version of Xen.
Quoted 1 line
Also add lines in
formatsforxentrace_format.
Personally I'd have put patch 3 first, and reduced the churn here.
Quoted 5 lines
Signed-off-by George Dunlap <[email protected]>---
NB that this patch goes on top of Andrew's trace cleanup series:
The delta in Xen is trivial. I'm happy if you want to commit this, and I can rebase over it.
~Andrew
Re: [PATCH 1/3] x86/hvm/trace: Use a different trace type for AMD processors
Quoted 8 lines · Andrew Cooper
Quoted 6 lines · George Dunlap
A long-standing usability sub-optimality with xenalyze is the necessity to specify
--svm-modewhen analyzing AMD processors. This fundamentally comes about because the same trace event ID is used for both VMX and SVM, but the contents of the trace must be interpreted differently.
Quoted 4 lines
Quoted 2 lines
Instead, allocate separate trace events for VMX and SVM vmexits in Xen; this will allow all readers to properly intrepret the meaning of
interpret ?
Oops, yes.
Quoted 10 lines
Quoted 10 lines
In xenalyze, first remove the redundant call to
init_hvm_data(); there's no way to get tohvm_vmexit_process()without it being already initialized by theset_vcpu_typecall inhvm_process().Replace this with
set_hvm_exit_reson_data(), and move setting of hvm->exit_reason_* into that function.Modify
hvm_processandhvm_vmexit_processto handle all four potential values appropriately.
Quoted 8 lines
Quoted 2 lines
If SVM entries are encountered, set opt.svm_mode so that other SVM-specific functionality is triggered.
Given that xenalyze is now closely tied to Xen, and that we're technically changing the ABI here, is there any point keeping
--svm-mode?I'm unsure of the utility of reading the buggy trace records from an older version of Xen.
Yeah, I thought about that. If nobody argues to keep it, I guess I'll rip it out for v2.
Quoted 3 lines
Quoted 1 line
Also add lines in
formatsforxentrace_format.Personally I'd have put patch 3 first, and reduced the churn here.
I actually meant to add an RFC to the third patch. I'd already implemented this by the time you suggested ripping it out. Doing it this way doesn't add much overhead if we do end up ripping out xentrace_format, and does save time if we don't.
Quoted 8 lines
Quoted 5 lines
Signed-off-by George Dunlap <[email protected]>---
NB that this patch goes on top of Andrew's trace cleanup series:The delta in Xen is trivial. I'm happy if you want to commit this, and I can rebase over it.
It's trivial in part *because of* your series. Without your series I would have had to do a bunch of munging around with DO_TRC_BLAH_BLAH to make it compile. In fact, I started doing it directly on staging, but quickly moved onto your series to save myself some time. :-)
Since I'm planning on re-submitting your series if you don't (unless you really object), this way should minimize churn.
I'm happy to post a branch to gitlab if anyone wants to see the combined result.
-George
Re: [PATCH 1/3] x86/hvm/trace: Use a different trace type for AMD processors
Quoted 14 lines · George Dunlap
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · George Dunlap
In xenalyze, first remove the redundant call to
init_hvm_data(); there's no way to get tohvm_vmexit_process()without it being already initialized by theset_vcpu_typecall inhvm_process().Replace this with
set_hvm_exit_reson_data(), and move setting of hvm->exit_reason_* into that function.Modify
hvm_processandhvm_vmexit_processto handle all four potential values appropriately.If SVM entries are encountered, set opt.svm_mode so that other SVM-specific functionality is triggered.
Quoted 7 lines
Quoted 5 lines
Given that xenalyze is now closely tied to Xen, and that we're technically changing the ABI here, is there any point keeping
--svm-mode?I'm unsure of the utility of reading the buggy trace records from an older version of Xen.
Yeah, I thought about that. If nobody argues to keep it, I guess I'll rip it out for v2.
That's the way I'd suggest going.
Quoted 11 lines
Quoted 7 lines
Quoted 5 lines
Signed-off-by George Dunlap <[email protected]>---
NB that this patch goes on top of Andrew's trace cleanup series:The delta in Xen is trivial. I'm happy if you want to commit this, and I can rebase over it.
It's trivial in part *because of* your series. Without your series I would have had to do a bunch of munging around with
DO_TRC_BLAH_BLAHto make it compile. In fact, I started doing it directly on staging, but quickly moved onto your series to save myself some time. :-)
Ah. I'll be refreshing mine next week. Given that it's missed everything since 4.16, I'm not intending to let it miss this one...
But I've still got a few things which need to go out before the past-post deadline.
~Andrew
PATCH 2/3 tools/xenalyze: Ignore HVM_EMUL events harder
In reply to George DunlapTo unify certain common sanity checks, checks are done very early in processing based only on the top-level type.
Unfortunately, when TRC_HVM_EMUL was introduced, it broke some of the assumptions about how the top-level types worked. Namely, traces of this type will show up outside of HVM contexts: in idle domains and in PV domains.
Make an explicit exception for TRC_HVM_EMUL types in a number of places:
- Pass the record info pointer to toplevel_assert_check, so that it can exclude TRC_HVM_EMUL records from idle and vcpu data_mode checks
- Don't attempt to set the vcpu data_type in hvm_process for TRC_HVM_EMUL records.
---
CC: Andrew Cooper <[email protected]>
CC: Anthony Perard <[email protected]>
CC: Olaf Hering <[email protected]>
--- tools/xentrace/xenalyze.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
tools/xentrace/xenalyze.c +12 -6
@@ -21,6 +21,7 @@#define _XOPEN_SOURCE 600#include <stdio.h> #include <stdlib.h> +#include <stdbool.h> #include <argp.h> #include <inttypes.h> #include <limits.h>
@@ -5305,8 +5306,11 @@ void hvm_process(struct pcpu_info *p)assert (p->current); -if (vcpu_set_data_type (p->current,VCPU_DATA_HVM )) -return ; +/* HVM_EMUL types show up in all contexts */ +if (ri->evt.sub !=0x4 ) { +if (vcpu_set_data_type (p->current,VCPU_DATA_HVM )) +return ; + }switch ( ri->evt.sub ) {case 2 :/* HVM_HANDLER */
@@ -9447,9 +9451,10 @@ static struct tl_assert_mask tl_assert_checks[TOPLEVEL_MAX] = {/* There are a lot of common assumptions for the various processing * routines. Check them all in one place, doing something else if * they don't pass. */ -int toplevel_assert_check (int toplevel,struct pcpu_info *p) +int toplevel_assert_check (int toplevel,struct record_info *ri,struct pcpu_info *p) {struct tl_assert_mask mask; +bool is_hvm_emul = (toplevel ==TOPLEVEL_HVM ) && (ri->evt.sub ==0x4 ); mask = tl_assert_checks[toplevel];
@@ -9459,7 +9464,7 @@ int toplevel_assert_check(int toplevel, struct pcpu_info *p) goto fail; } -if ( mask.not_idle_domain ) +if ( mask.not_idle_domain && !is_hvm_emul) {/* Can't do this check w/o first doing above check */ assert (mask.p_current);
@@ -9478,7 +9483,8 @@ int toplevel_assert_check(int toplevel, struct pcpu_info *p) v = p->current;if ( ! (v->data_type ==VCPU_DATA_NONE - || v->data_type == mask.vcpu_data_mode) ) + || v->data_type == mask.vcpu_data_mode + || is_hvm_emul) ) {/* This may happen for track_dirty_vram, which causes a SHADOW_WRMAP_BF trace f/ dom0 */ fprintf(warn, "WARNING: Unexpected vcpu data type for d%dv%d on proc %d! Expected %d got %d. Not processing\n",
@@ -9525,7 +9531,7 @@ void process_record(struct pcpu_info *p) {return ;/* Unify toplevel assertions */ -if (toplevel_assert_check (toplevel, p) ) +if (toplevel_assert_check (toplevel, ri, p) ) {switch (toplevel) {case TRC_GEN_MAIN :
Signature · 1 line
2.25.1
Re: [PATCH 2/3] tools/xenalyze: Ignore HVM_EMUL events harder
Quoted 10 lines · George Dunlap
To unify certain common sanity checks, checks are done very early in processing based only on the top-level type.
Unfortunately, when
TRC_HVM_EMULwas introduced, it broke some of the assumptions about how the top-level types worked. Namely, traces of this type will show up outside of HVM contexts: in idle domains and in PV domains.Make an explicit exception for
TRC_HVM_EMULtypes in a number of places:
Quoted 8 lines
- Pass the record info pointer to
toplevel_assert_check, so that it can excludeTRC_HVM_EMULrecords from idle and vcpudata_modechecks- Don't attempt to set the vcpu
data_typeinhvm_processforTRC_HVM_EMULrecords.Signed-off-by George Dunlap <[email protected]>
Although I'm tempted to say that if records of this type show up outside of HVM context, then it's misnamed or we've got an error in Xen. Any view on which?
~Andrew
Re: [PATCH 2/3] tools/xenalyze: Ignore HVM_EMUL events harder
Quoted 19 lines · Andrew Cooper
Quoted 17 lines · George Dunlap
To unify certain common sanity checks, checks are done very early in processing based only on the top-level type.
Unfortunately, when
TRC_HVM_EMULwas introduced, it broke some of the assumptions about how the top-level types worked. Namely, traces of this type will show up outside of HVM contexts: in idle domains and in PV domains.Make an explicit exception for
TRC_HVM_EMULtypes in a number of places:- Pass the record info pointer to
toplevel_assert_check, so that it can excludeTRC_HVM_EMULrecords from idle and vcpudata_modechecks- Don't attempt to set the vcpu
data_typeinhvm_processforTRC_HVM_EMULrecords.
Quoted 7 lines
Quoted 1 line
Signed-off-by George Dunlap <[email protected]>Acked-by Andrew Cooper <[email protected]>Although I'm tempted to say that if records of this type show up outside of HVM context, then it's misnamed or we've got an error in Xen. Any view on which?
I didn't add them; they seem to be about doing emulation of devices on behalf of an HVM domain. But since some of these are things like timers and such, the actual code ends up being run in random contexts; probably interrupt contexts (which of course can occur when a non-HVM guest is running).
One example of an event that showed up this way was TRC_HVM_EMUL_RTC_STOP_TIMER, which is traced from xen/arch/x86/hvm/rtc.c:rtc_pf_callback(). I didn't trace back how it came to be called while a PV guest was running, but it was pretty obvious that it was legit.
It would certainly make the xenalyze code cleaner to make a separate top-level tracing category for them; but they certainly do seem to be directly related to HVM, so doing so would seem to be putting the cart before the horse, as they say (although I could be convinced otherwise).
-George
PATCH 3/3 tools/xentrace: Remove xentrace_format
In reply to George Dunlapxentrace_format was always of limited utility, since trace records across pcpus were processed out of order; it was superseded by xenalyze over a decade ago.
But for several releases, the formats file it has depended on for proper operation has not even been included in make install (which generally means it doesn't get picked up by distros either); yet nobody has seemed to complain.
Simple remove xentrace_format, and point people to xenalyze instead.
NB that there is no man page for xenalyze, so the "see also" on the xentrace man page is simply removed for now.
---
CC: Andrew Cooper <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monne <[email protected]>
CC: Anthony Perard <[email protected]>
CC: Olaf Hering <[email protected]>
--- docs/man/xentrace.8.pod | 5 +- docs/man/xentrace_format.1.pod | 46 ------ tools/xentrace/Makefile | 3 - tools/xentrace/formats | 231 ----------------------------- tools/xentrace/xentrace.c | 2 +- tools/xentrace/xentrace_format | 264 --------------------------------- 6 files changed, 2 insertions(+), 549 deletions(-)
docs/man/xentrace.8.pod +1 -4
@@ -20,7 +20,7 @@ D1...D5 are the trace data. Data is dumped onto the standard output (which must not be a TTY) or a I<FILE> specified on the command line. -The output should be parsed using the tool xentrace_format, which can +The output should be parsed using the tool xenalyze, which can produce human-readable output in ASCII format.
@@ -157,6 +157,3 @@ B<xentrace> collects the following events from the trace buffer: Mark A. Williamson <[email protected]> -=head1 SEE ALSO - -xentrace_format(1)
docs/man/xentrace_format.1.pod deleted +0 -46
46 lines not on this page · raw message
tools/xentrace/Makefile +0 -3
@@ -10,7 +10,6 @@ LDLIBS += $(ARGP_LDFLAGS) BIN := xenalyze SBIN := xentrace xentrace_setsize LIBBIN := xenctx -SCRIPTS := xentrace_format TARGETS := $(BIN) $(SBIN) $(LIBBIN)
@@ -24,13 +23,11 @@ install: all $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) $(INSTALL_PROG) $(BIN) $(DESTDIR)$(bindir) $(INSTALL_PROG) $(SBIN) $(DESTDIR)$(sbindir) - $(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(bindir) $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(LIBEXEC_BIN) .PHONY: uninstall uninstall: rm -f $(addprefix $(DESTDIR)$(LIBEXEC_BIN)/, $(LIBBIN)) - rm -f $(addprefix $(DESTDIR)$(bindir)/, $(SCRIPTS)) rm -f $(addprefix $(DESTDIR)$(sbindir)/, $(SBIN)) rm -f $(addprefix $(DESTDIR)$(bindir)/, $(BIN))
tools/xentrace/formats deleted +0 -231
231 lines not on this page · raw message
tools/xentrace/xentrace.c +1 -1
@@ -848,7 +848,7 @@ static void usage(int status)"\n" \" CPU(uint) TSC(uint64_t) EVENT(uint32_t) D1 D2 D3 D4 D5 (all uint32_t)\n" \"\n" \ -"The output should be parsed using the tool xentrace_format,\n" \ +"The output should be parsed using the tool xenalyze,\n" \"which can produce human-readable output in ASCII format.\n" printf(USAGE_STR );
tools/xentrace/xentrace_format deleted +0 -264
264 lines not on this page · raw message
Signature · 1 line
2.25.1
Re: [PATCH 3/3] tools/xentrace: Remove xentrace_format
Quoted 9 lines · George Dunlap
xentrace_formatwas always of limited utility, since trace records across pcpus were processed out of order; it was superseded by xenalyze over a decade ago.But for several releases, the
formatsfile it has depended on for proper operation has not even been included inmake install(which generally means it doesn't get picked up by distros either); yet nobody has seemed to complain.
Quoted 6 lines
Simple remove
xentrace_format, and point people to xenalyze instead.NB that there is no man page for xenalyze, so the "see also" on the xentrace man page is simply removed for now.
Signed-off-by George Dunlap <[email protected]>
Re: [PATCH 3/3] tools/xentrace: Remove xentrace_format
In reply to George DunlapFri, 26 Apr 2024 15:32:31 +0100 George Dunlap <[email protected]>:
Quoted 1 line
Simple remove
xentrace_format, and point people to xenalyze instead.
Olaf