Skip to contentSkip to conversation

tools: delete gtraceview and gtracestat

PATCH In review Wei Liu 3 participants 8 messages Aug 15, 2016 – Sep 2, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 tools: delete gtraceview and gtracestat

There has not been any substantial update to them since 2011. My quick check shows that they don't work.

Just delete them. It would be easy to resurrect them from git log should people still need them.

---
Cc: Ian Jackson <[email protected]>

---
 .gitignore              |    2 -
 .hgignore               |    2 -
 tools/misc/Makefile     |    8 -
 tools/misc/gtracestat.c | 1110 ----------------------------------------------
 tools/misc/gtraceview.c | 1111 -----------------------------------------------
 5 files changed, 2233 deletions(-)
 delete mode 100644 tools/misc/gtracestat.c
 delete mode 100644 tools/misc/gtraceview.c
.gitignore +0 -2
index d193820..065a8a9 100644
@@ -192,8 +192,6 @@ tools/misc/xen-livepatch
 tools/misc/xenperf
 tools/misc/xenpm
 tools/misc/xen-hvmctx
-tools/misc/gtraceview
-tools/misc/gtracestat
 tools/misc/xenlockprof
 tools/misc/lowmemd
 tools/misc/xencov
.hgignore +0 -2
index 0bd29a1..8342f36 100644
@@ -205,8 +205,6 @@
 ^tools/misc/xenpm$
 ^tools/misc/xen-hvmctx$
 ^tools/misc/xen-lowmemd$
-^tools/misc/gtraceview$
-^tools/misc/gtracestat$
 ^tools/misc/xenlockprof$
 ^tools/misc/xencov$
 ^tools/pygrub/build/.*$
tools/misc/Makefile +0 -8
index cee2b99..8152f7b 100644
@@ -17,8 +17,6 @@ INSTALL_BIN                    += xencov_split
 INSTALL_BIN += $(INSTALL_BIN-y)
 
 # Everything to be installed in regular sbin/
-INSTALL_SBIN                   += gtracestat
-INSTALL_SBIN                   += gtraceview
 INSTALL_SBIN                   += xen-bugtool
 INSTALL_SBIN-$(CONFIG_MIGRATE) += xen-hptool
 INSTALL_SBIN-$(CONFIG_X86)     += xen-hvmcrash
@@ -85,9 +83,6 @@ xenperf: xenperf.o
 xenpm: xenpm.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
 
-gtracestat: gtracestat.o
-	$(CC) $(LDFLAGS) -o $@ $< $(APPEND_LDFLAGS)
-
 xenlockprof: xenlockprof.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
 
@@ -110,9 +105,6 @@ xen-livepatch: xen-livepatch.o
 xen-lowmemd: xen-lowmemd.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenevtchn) $(LDLIBS_libxenctrl) $(LDLIBS_libxenstore) $(APPEND_LDFLAGS)
 
-gtraceview: gtraceview.o
-	$(CC) $(LDFLAGS) -o $@ $< $(CURSES_LIBS) $(TINFO_LIBS) $(APPEND_LDFLAGS)
-
 xencov: xencov.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
 
tools/misc/gtracestat.c deleted +0 -1110

1,110 lines not on this page · raw message

tools/misc/gtraceview.c deleted +0 -1111

1,111 lines not on this page · raw message

Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

Wei Liu writes ("[PATCH] tools: delete gtraceview and gtracestat"):

Quoted 5 lines

There has not been any substantial update to them since 2011. My quick check shows that they don't work.

Just delete them. It would be easy to resurrect them from git log should people still need them.

I'm not sure what these are. git log is not particularly illuminating. gtraceview.c and some of the commit messages talk about "Cx events" or "x86 Cx" and there is an Intel copyright notice, but not Intel email addresses.

There is also some discussion of xentrace in the source code.

Are these the only in-tool consumer of some kind of hypervisor -generated or -mediated data ? If so it should be retained IMO, or the corresponding hypervisor code removed too.

I have added George to the CC in the hope that he may know more...

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 12 lines · Ian Jackson

Wei Liu writes ("[PATCH] tools: delete gtraceview and gtracestat"):

Quoted 5 lines

There has not been any substantial update to them since 2011. My quick check shows that they don't work.

Just delete them. It would be easy to resurrect them from git log should people still need them.

I'm not sure what these are. git log is not particularly illuminating. gtraceview.c and some of the commit messages talk about "Cx events" or "x86 Cx" and there is an Intel copyright notice, but not Intel email addresses.

Quoted 7 lines

There is also some discussion of xentrace in the source code.

Are these the only in-tool consumer of some kind of hypervisor -generated or -mediated data ? If so it should be retained IMO, or the corresponding hypervisor code removed too.

I have added George to the CC in the hope that he may know more...

Well I'd never looked at it before, but it does indeed seem to be something about skimming through xentrace records.

The help for both functions says to run "xentrace -e 0x80f000", which will capture all events of type TRC_HW, which includes TRC_PM. The code (again for both) then seems to parse events of type TRC_PM_IDLE_ENTRY, TRC_PM_IDLE_EXIT, and TRC_PM_FREQ_CHANGE.

gtraceview seems to be an ncurses-based browser; gtracestat seems to be a xenalyze-style statistical analysis thing.

So it would seem to be the case that they consume hypervisor-generated data, but they are not the *only* consumers of that data (xentrace_format and xenalyze being the other ones).

When you say they "don't work", what do you mean?

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#3 lore raw
Quoted 29 lines · George Dunlap
Quoted 12 lines · Ian Jackson

Wei Liu writes ("[PATCH] tools: delete gtraceview and gtracestat"):

Quoted 5 lines

There has not been any substantial update to them since 2011. My quick check shows that they don't work.

Just delete them. It would be easy to resurrect them from git log should people still need them.

I'm not sure what these are. git log is not particularly illuminating. gtraceview.c and some of the commit messages talk about "Cx events" or "x86 Cx" and there is an Intel copyright notice, but not Intel email addresses.

Quoted 7 lines

There is also some discussion of xentrace in the source code.

Are these the only in-tool consumer of some kind of hypervisor -generated or -mediated data ? If so it should be retained IMO, or the corresponding hypervisor code removed too.

I have added George to the CC in the hope that he may know more...

Well I'd never looked at it before, but it does indeed seem to be something about skimming through xentrace records.

The help for both functions says to run "xentrace -e 0x80f000", which will capture all events of type TRC_HW, which includes TRC_PM. The code (again for both) then seems to parse events of type TRC_PM_IDLE_ENTRY, TRC_PM_IDLE_EXIT, and TRC_PM_FREQ_CHANGE.

Quoted 9 lines

gtraceview seems to be an ncurses-based browser; gtracestat seems to be a xenalyze-style statistical analysis thing.

So it would seem to be the case that they consume hypervisor-generated data, but they are not the *only* consumers of that data (xentrace_format and xenalyze being the other ones).

When you say they "don't work", what do you mean?

Tried to run it. It failed to produce anything useful. It is bit-rotten.

Wei.

Quoted 1 line

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw
Quoted 33 lines · Wei Liu
Quoted 32 lines · George Dunlap
Quoted 12 lines · Ian Jackson

Wei Liu writes ("[PATCH] tools: delete gtraceview and gtracestat"):

Quoted 5 lines

There has not been any substantial update to them since 2011. My quick check shows that they don't work.

Just delete them. It would be easy to resurrect them from git log should people still need them.

I'm not sure what these are. git log is not particularly illuminating. gtraceview.c and some of the commit messages talk about "Cx events" or "x86 Cx" and there is an Intel copyright notice, but not Intel email addresses.

Quoted 7 lines

There is also some discussion of xentrace in the source code.

Are these the only in-tool consumer of some kind of hypervisor -generated or -mediated data ? If so it should be retained IMO, or the corresponding hypervisor code removed too.

I have added George to the CC in the hope that he may know more...

Well I'd never looked at it before, but it does indeed seem to be something about skimming through xentrace records.

The help for both functions says to run "xentrace -e 0x80f000", which will capture all events of type TRC_HW, which includes TRC_PM. The code (again for both) then seems to parse events of type TRC_PM_IDLE_ENTRY, TRC_PM_IDLE_EXIT, and TRC_PM_FREQ_CHANGE.

gtraceview seems to be an ncurses-based browser; gtracestat seems to be a xenalyze-style statistical analysis thing.

Quoted 8 lines
Quoted 6 lines

So it would seem to be the case that they consume hypervisor-generated data, but they are not the *only* consumers of that data (xentrace_format and xenalyze being the other ones).

When you say they "don't work", what do you mean?

Tried to run it. It failed to produce anything useful. It is bit-rotten.

You took a trace and passed the resulting binary to it then?

If so, it's probably just the case that the trace record format has changed somewhat and these weren't updated. It would probably be fairly straightforward to fix; but if nobody's using it, I'd just as soon delete it. The "gtracestat" functionality would probably better be added to xenalyze in any case.

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#5 lore raw
Quoted 38 lines · George Dunlap
Quoted 37 lines · Wei Liu
Quoted 36 lines · George Dunlap
Quoted 12 lines · Ian Jackson

Wei Liu writes ("[PATCH] tools: delete gtraceview and gtracestat"):

Quoted 5 lines

There has not been any substantial update to them since 2011. My quick check shows that they don't work.

Just delete them. It would be easy to resurrect them from git log should people still need them.

I'm not sure what these are. git log is not particularly illuminating. gtraceview.c and some of the commit messages talk about "Cx events" or "x86 Cx" and there is an Intel copyright notice, but not Intel email addresses.

Quoted 7 lines

There is also some discussion of xentrace in the source code.

Are these the only in-tool consumer of some kind of hypervisor -generated or -mediated data ? If so it should be retained IMO, or the corresponding hypervisor code removed too.

I have added George to the CC in the hope that he may know more...

Well I'd never looked at it before, but it does indeed seem to be something about skimming through xentrace records.

The help for both functions says to run "xentrace -e 0x80f000", which will capture all events of type TRC_HW, which includes TRC_PM. The code (again for both) then seems to parse events of type TRC_PM_IDLE_ENTRY, TRC_PM_IDLE_EXIT, and TRC_PM_FREQ_CHANGE.

gtraceview seems to be an ncurses-based browser; gtracestat seems to be a xenalyze-style statistical analysis thing.

So it would seem to be the case that they consume hypervisor-generated data, but they are not the *only* consumers of that data (xentrace_format and xenalyze being the other ones).

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

When you say they "don't work", what do you mean?

Tried to run it. It failed to produce anything useful. It is bit-rotten.

You took a trace and passed the resulting binary to it then?

Yes.

Quoted 7 lines

If so, it's probably just the case that the trace record format has changed somewhat and these weren't updated. It would probably be fairly straightforward to fix; but if nobody's using it, I'd just as soon delete it. The "gtracestat" functionality would probably better be added to xenalyze in any case.

Yes. I agree.

Wei.

Quoted 2 lines

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by
#6 lore raw

Wei Liu writes ("Re: [PATCH] tools: delete gtraceview and gtracestat"):

Quoted 8 lines · George Dunlap
Quoted 5 lines

If so, it's probably just the case that the trace record format has changed somewhat and these weren't updated. It would probably be fairly straightforward to fix; but if nobody's using it, I'd just as soon delete it. The "gtracestat" functionality would probably better be added to xenalyze in any case.

Yes. I agree.

OK, thanks for the discussion. I'm sold.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#7 lore raw
Quoted 8 lines · Ian Jackson

Wei Liu writes ("Re: [PATCH] tools: delete gtraceview and gtracestat"):

Quoted 7 lines · George Dunlap
Quoted 5 lines

If so, it's probably just the case that the trace record format has changed somewhat and these weren't updated. It would probably be fairly straightforward to fix; but if nobody's using it, I'd just as soon delete it. The "gtracestat" functionality would probably better be added to xenalyze in any case.

Quoted 5 lines
Quoted 1 line

Yes. I agree.

OK, thanks for the discussion. I'm sold.

Pushed with your ack. Thanks.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel