kfraser@localhost.localdomain
9f941deb84
[TOOLS] Provide common LFS CFLAGS/LDFLAGS additions in Rules.mk.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-11-17 09:54:48 +00:00
kfraser@localhost.localdomain
0f5ad1e3d0
Add lost record format in xentrace formats file.
...
Signed-off-by: Xin Li <xin.b.li@intel.com >
2006-11-09 13:30:16 +00:00
awilliam@xenbuild.aw
c59ad25b3b
[IA64] xenctx shows more registers for ia64
...
This patch adds more user registers to show them to xenctx for ia64.
Tested domU/domVTi on ia64.
Sample is the below.
# ./xenctx 1 0
iip: e000000000000810
ipsr: 00001012087a6010 b0: a000000100068a70
b6: a00000010014ff60 b7: e000000000000800
cr_ifs: 800000000000050a ar_unat: 0000000000000000
ar_pfs: 8000000000000209 ar_rsc: 0000000000000008
ar_rnat: 0000000000000000 ar_bspstore: a000000100c19030
ar_fpsr: 0009804c8a70433f event_callback_ip: a000000100067a20
pr: 000000000005aa85 loadrs: 0000000000780000
iva: a000000100008000 dcr: 0000000000007e04
r1: a0000001010369a0
r2: 0000000000001000 r3: 8000000000000209
r4: 0000000000000000 r5: 0000000000000000
r6: 0000000000000000 r7: 0000000000000000
r8: a000000100068a70 r9: 0000000000000100
r10: 0000000000000000 r11: 0000000000050ac5
sp: a000000100c1fd80 tp: a000000100c18000
r14: 0000000000000001 r15: 0000000000000000
r16: fffffffffff04c18 r17: a000000100c1fdb0
r18: a000000100c1fdb1 r19: a000000100c1fe90
r20: a000000100c1fe10 r21: 0000000000000000
r22: 0000000000000001 r23: 0000000000000000
r24: a000000100e5a448 r25: a000000100c18f10
r26: ffffffffffff0030 r27: 0000000000000000
r28: 000000000000001d r29: 0000000000000000
r30: 0000000000000000 r31: 0000000000000000
itr: P rid va pa ps ed pl ar a d ma key
[0] 1 000005 a000000100000000 0000004000000 1a 64M 1 2 3 1 1 0 WB 000000
[1] 1 000007 e000000000000000 0000000000000 18 16M 1 2 3 1 1 0 WB 000000
[2] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[3] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[4] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[5] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[6] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[7] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
dtr: P rid va pa ps ed pl ar a d ma key
[0] 1 000005 a000000100000000 0000004000000 1a 64M 1 2 3 1 1 0 WB 000000
[1] 1 000007 ffffffffffff0000 0000000010000 10 64K 1 2 3 1 1 0 WB 000000
[2] 1 000007 e000000000000000 0000000000000 18 16M 1 2 3 1 1 0 WB 000000
[3] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[4] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[5] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[6] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
[7] 0 000000 0000000000000000 0000000000000 00 0 0 0 0 0 0 WB 000000
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com >
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2006-10-24 10:08:30 -06:00
kfraser@localhost.localdomain
5bcff8383d
[HVM] XenTrace enhancement for HVM SMP guests.
...
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com >
Signed-off-by: Xin Li <xin.b.li@intel.com >
2006-10-18 19:20:36 +01:00
kfraser@localhost.localdomain
6311dc03da
Clean up duplication of 'install' macros in the Makefiles.
...
Signed-off-by: John Levon <john.levon@sun.com >
2006-10-17 15:57:05 +01:00
George Dunlap
9caa57d3c6
Added option to xentrace to set the trace buffer size.
...
Signed-off-by: George Dunlap <gdunlap@xensource.com >
2006-08-21 12:05:11 -04:00
kfraser@localhost.localdomain
0512d8f50a
Rename two xentrace tools to make it obvious that setmask and setsize are xen related.
...
Based on a patch from Rob Gardner <rob.gardner@hp.com >
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-08-16 13:53:10 +01:00
awilliam@xenbuild.aw
1dcdc118ac
[IA64] dummy print_stack() func for NO_TRANSLATION path
...
Signed-off-by: Alex Williamson <alex.williamson@hp.com >
2006-06-19 14:55:13 -06:00
awilliam@xenbuild.aw
75673932b6
[IA64] fix is_kernel_text in xenctx and show more registers
...
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com >
2006-06-19 13:35:49 -06:00
awilliam@xenbuild.aw
832cc7c654
[IA64] enable xenctx on ia64
...
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net >
2006-06-19 13:26:45 -06:00
kaf24@firebug.cl.cam.ac.uk
e1b53df502
Fix xentrace_format to deal with more than 16 CPUs.
...
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com >
2006-05-19 15:52:35 +01:00
kaf24@firebug.cl.cam.ac.uk
f00a6868cf
Our 10,000th changeset! (Clean up trailing whitespace in README file :-)
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-05-16 13:46:57 +01:00
kaf24@firebug.cl.cam.ac.uk
dbb16ea9d1
Fix the tools build:
...
1. xenctrl.h needs to include stddef.h to define size_t
2. tbctl is broken -- remove it since xenmon and xentrace
both automatcially enable tracing now
3. Fix setsize after xc_tbug interface changes
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-05-16 13:35:59 +01:00
kaf24@firebug.cl.cam.ac.uk
fc1bbeb091
Extend xentrace man page.
...
From: Kaleb Pederson
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-05-16 09:21:33 +01:00
kaf24@firebug.cl.cam.ac.uk
b152f0ed7a
Use common code for enabling tracing via xenmon and xentrace, also fixing
...
the last two remaining xc_private.h users outside of libxc.
Signed-off-by: John Levon <john.levon@sun.com >
2006-05-16 09:18:25 +01:00
kaf24@firebug.cl.cam.ac.uk
4550aad32d
Fix xentrace to initialise the trace buffers if they are not set up.
...
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com >
2006-05-12 15:19:37 +01:00
kaf24@firebug.cl.cam.ac.uk
2d0922d515
Move Linux-specific privcmd code into private libxc implementations.
...
Make header path for kernel's privcmd/evtchn headers generic.
Remove pointless xi_*() interface that was using private libxc
interfaces.
Signed-off-by: John Levon <john.levon@sun.com >
2006-05-02 15:12:06 +01:00
kaf24@firebug.cl.cam.ac.uk
b5fa90ac8e
build: Clean up use of .PHONY
...
* Move .PHONY directives next to targets,
this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...
Signed-Off-By: Horms <horms@verge.net.au >
2006-04-10 17:02:49 +01:00
kaf24@firebug.cl.cam.ac.uk
7e273af3ec
This patch is mainly a cleanup of vmx related xentrace code. One minor
...
xentrace bug is fixed.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com >
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com >
2006-03-24 10:59:31 +01:00
kaf24@firebug.cl.cam.ac.uk
945758df89
More build config changes:
...
- Build -O2 rather than -O3
- Build with -Wstrict-prototypes
- Move target-specific generic compiler switches to Config.mk
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-03-10 17:32:04 +01:00
kaf24@firebug.cl.cam.ac.uk
d27fbb0061
Move 'debug' build option into the outermost Config.mk file.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-03-09 22:31:45 +01:00
kaf24@firebug.cl.cam.ac.uk
326450f67e
Clean up the usage of CFLAGS. This is nice for packagers, who would
...
like to control the base compilation flags from a central place.
Signed-off-by: Charles Coffing <ccoffing@novell.com >
2006-03-09 21:17:45 +01:00
kaf24@firebug.cl.cam.ac.uk
97e26d34f2
Clean up the interface for sharing xen-heap pages with guests.
...
Map trace buffer pages as DOMID_XEN pages.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-03-09 00:45:40 +01:00
vhanquez@kneesa.uk.xensource.com
3d5a38f03d
add the hypercall_page to xenctx knowledge.
...
Signed-off-by: Vincent Hanquez <vincent@xensource.com >
2006-01-31 17:31:39 +00:00
kaf24@firebug.cl.cam.ac.uk
620d876900
Two shell commands weren't properly spaced in a makefile.
...
Signed-off-by: Jan Beulich <JBeulich@novell.com >
2006-01-24 12:26:38 +01:00
kaf24@firebug.cl.cam.ac.uk
5becda0913
Fix a couple of bogus dom0_op names:
...
setdomaininfo -> setvcpucontext
pincpudomain -> setvcpuaffinity
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-01-06 12:53:19 +01:00
Ian.Campbell@xensource.com
efec87263e
Only build xenctx on x86_32 and x86_64.
...
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com >
2005-12-23 09:12:41 +00:00
Ian.Campbell@xensource.com
40924689a9
Add support to xenctx for printing stack traces on x86_32 and x86_64.
...
To support this add xc_translate_foreign_address to libxc. This function
walks page tables and translates virtual addresses using a given domain
and vcpu page table.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com >
2005-12-22 14:33:19 +00:00
kaf24@firebug.cl.cam.ac.uk
1f39a6dc5e
The xentrace_format script doesn't work on x86/64. Python pads the input
...
structure because the first field is 32 bits and the next is 64 bits,
whereas x86-32 doesn't pad. The quick fix is to read the cpu id
separately as a 32bit value, then read the rest of the trace record.
Here is a little patch that does that. Tested on x86/32 SMP and x86/64.
Signed-off-by: Rob Gardner <rob.gardner@hp.com >
2005-11-18 17:54:23 +01:00
kaf24@firebug.cl.cam.ac.uk
0d5ddb8806
The new userland monitoring tool, XenMon.
...
Signed-off-by: Rob Gardner <rob.gardner@hp.com >
2005-11-15 15:09:58 +01:00
kaf24@firebug.cl.cam.ac.uk
2442eccf6d
Sanitise the trace-buffer hypervisor<->user interface.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-10-31 10:45:31 +01:00
kaf24@firebug.cl.cam.ac.uk
f6556b0d17
This is a set of changes which allow the tracebuffer functionality to
...
be enabled and disabled dynamically while the system is running. The
existing DOM0_TBUFCONTROL hypercall is used, and three new operations
have been added: enable, disable, and set_size. This is to address
concerns that use of the trace buffers impacts system performance.
The initial value of opt_tbuf_size is set to zero, so that trace
buffers remain disabled by default. They can be enabled as they used
to be, by adding tbuf_size= to the xen command line at boot time. They
can also be turned on and off any time when the system is running. The
size of the trace buffer allocation can also be changed dynamically
while the system is running. The trace buffers may be completely
deallocated by setting the size to zero. No change in buffer size can
be done while tracing is enabled;
Other Changes made:
- Update the constants in tools/xentrace/formats to match those in
public/trace.h
- libxc functions for enable/disable, get/set size
Still left to do:
- remove all ifdef's for trace buffers and the 'trace' build option
- xm command to do enable/disable trace buffers and get/set size
Signed-off-by: Rob Gardner <rob.gardner@hp.com >
2005-10-30 22:31:45 +01:00
kaf24@firebug.cl.cam.ac.uk
d8263e8dba
Fix Xen public interfaces and the tools to consistently
...
use stdint-format bitsize types (uint32_t and friends).
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-10-12 11:07:37 +01:00
adsharma@los-vmm.sc.intel.com
7910ac7d8d
Fix typo.
2005-08-25 13:52:38 -07:00
adsharma@los-vmm.sc.intel.com
49c72d3066
Tracing hooks for VMX domains
...
The low level asm instrumentation is needed to get precise TSC counts.
trace=n should have precisely 0 overhead because of this patch.
Signed-off-by: Yunfeng Zhai <yunfeng.zhao@intel.com >
Signed-off-by: Arun Sharma <arun.sharma@intel.com >
2005-08-25 13:27:03 -07:00
cl349@firebug.cl.cam.ac.uk
60eb663513
Rename libxc => libxenctrl and xc.h => xen/xenctrl.h
...
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk >
--HG--
rename : tools/libxc/xc.h => tools/libxc/xenctrl.h
2005-08-24 23:07:29 +00:00
kaf24@firebug.cl.cam.ac.uk
d9eb7e09d7
Get rid of memory_t. Almost all uses should be unsigned long.
...
The few uses for a physical/machine address have been mostly
changed to u64.
Grant table code probably needs auditing for PAE correctness,
but at least the interface is now sound.
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-08-19 17:25:04 +00:00
kaf24@firebug.cl.cam.ac.uk
6152a04c00
Implement event filtering command line options for xentrace.
...
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com >
Signed-off-by: Arun Sharma <arun.sharma@intel.com >
2005-08-11 21:06:35 +00:00
kaf24@firebug.cl.cam.ac.uk
8ab6a7f5a8
Don't build xenctx by default,a nd fix one error msg.
2005-07-11 09:03:24 +00:00
kaf24@firebug.cl.cam.ac.uk
1c86b5d22b
Fix xenctx compilation and support 64 bit.
...
Signed-off-by: Arun Sharma <arun.sharma@intel.com >
2005-07-11 08:59:01 +00:00
kaf24@firebug.cl.cam.ac.uk
763c04b318
Rename fields in physinfo_t structure and add sockets/nodes
...
fields.
2005-07-04 16:02:46 +00:00
cl349@firebug.cl.cam.ac.uk
519108b9f7
bitkeeper revision 1.1534.1.1 (429399e0oJudIjoFsgWFxNKnCM7qTg)
...
Nothing but vnet uses libxutil -- move it there.
Makefile, xc.c, setup.py, configure, configure.in, Makefile.in:
This doesn't use libxutil.
Makefile, Makefile.vnet, Rules.mk:
Move libxutil into vnet since it's only used there.
Many files:
mvdir
2005-05-24 21:17:20 +00:00
kaf24@firebug.cl.cam.ac.uk
162dad1cfb
bitkeeper revision 1.1389.1.2 (4270ed5dZvr_HdIQR0eBM2m4Kj81_A)
...
Renames:
execution_context/xen_regs -> cpu_user_regs
full_execution_context -> vcpu_guest_context
[defined both 'struct xxx' and 'xxx_t' forms]
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-04-28 14:04:13 +00:00
iap10@freefall.cl.cam.ac.uk
7af13f54d1
bitkeeper revision 1.1306 (42604119SDlzs7R1nEPCLSovtVOJ7A)
...
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-04-15 22:32:57 +00:00
katzj@redhat.com[iap10]
60332d49d6
bitkeeper revision 1.1159.258.95 (42602010v-eE8RbyDMcA8iwS-dRkcg)
...
[PATCH] [PATCH] Man page path
The FHS has said that manpages go in /usr/share/man instead of /usr/man
since FHS 2.0 which dates back to 1997 or so, if I remember correctly.
Having the makefiles drop things in the right place makes the packages a
little cleaner.
Signed-off-by: Jeremy Katz <katzj@redhat.com >
===== tools/xentrace/Makefile 1.24 vs edited =====
2005-04-15 20:12:00 +00:00
bren@br260.wolfson.cam.ac.uk
b65957655a
bitkeeper revision 1.1286 (425a96ca5UAvnSzOyOKUFxfHjMVm9g)
...
Define atomic functions ourselves rather than relying on
kernel headers under "/usr/include".
Signed-off-by: bin.ren@cl.cam.ac.uk
2005-04-11 15:24:58 +00:00
bren@br260.wolfson.cam.ac.uk
b07ab9a333
bitkeeper revision 1.1278.1.1 (4254b244uWvJejlkGeqN8mp1CLtN5w)
...
New Xen trace buffer implementation that avoids blocking
interrupts. Add support for trace buffer CPU mask and
event mask. Add support for trace classes. New DOM0 trace
buffer hypercall. Fix 'xentrace' signal handler bug.
Signed-off-by: bin.ren@cl.cam.ac.uk
2005-04-07 04:08:36 +00:00
bren@br260.wolfson.cam.ac.uk
a526452266
bitkeeper revision 1.1273.1.1 (4252c7d35i_j5GPb1ONx5tb9t7WG4g)
...
Revamp xentrace. Clean up Xen scheduler tracings.
Signed-off-by: bin.ren@cl.cam.ac.uk
2005-04-05 17:16:03 +00:00
kaf24@firebug.cl.cam.ac.uk
ab78c96aeb
bitkeeper revision 1.1236.1.105 (423fdeaeuXmbQUj74cWh1nItpSKUjw)
...
Improved cross-compilation support.
Signed-off-by: Keir Fraser <keir@xensource.com >
2005-03-22 09:00:30 +00:00
cl349@firebug.cl.cam.ac.uk
b1520cbb5a
bitkeeper revision 1.1236.25.10 (42335daeuY-j8gV61kHapguVRal9ig)
...
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk-2.6.11
2005-03-12 21:22:54 +00:00