All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4.1] Support CPU list parsing in xentrace.
@ 2015-04-23 13:29 Konrad Rzeszutek Wilk
  2015-04-23 13:29 ` [PATCH v4.1 1/3] libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu, testcpu] to complement xc_cpumap_alloc Konrad Rzeszutek Wilk
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2015-04-23 13:29 UTC (permalink / raw)
  To: george.dunlap, ian.campbell, ian.jackson, wei.liu2, xen-devel

Hey George, Ian,


Ian: I copied your comment and stuffed it in, please Ack:
 [PATCH v4.1 1/3] libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu,

already Acked:
 [PATCH v4.1 2/3] libxc/xentrace: Use xc_cpumap_t for

George: please review (it is unchanged since v4 posting):
 [PATCH v4.1 3/3] xentrace: Implement cpu mask range parsing of human


Since v4 [http://lists.xen.org/archives/html/xen-devel/2015-04/msg00441.html]:
 - Lifted comment from Ian about xc_cpumap.
 - Added Ian's Ack on one patch.

Since v3 [http://lists.xen.org/archives/html/xen-devel/2015-03/msg02986.html]:
 - Rebased code on George's patch.
 - Added support for 'all' in CPU parsing.

In v2 [http://lists.xen.org/archives/html/xen-devel/2014-06/msg01835.html]:
 - Redid the code per George's feedback.
 - Expanded the xc_cpumap_* calls so that we have an 'setbit' variant.


The purpose of these patches is to allow users of xentrace to narrow
down a specific CPU without having to figure out a bit mask. They
fix the limitation of the bit mask which is it can only do up to 32-bits
- which on large machines (say 120CPUs), you can't selectively trace anything
past 32CPUs.

The code expands the -c parameter where you can do -c <starting cpu>-<end cpu>,
or -c <cpu1>,<cpu2>, or a combination of them, or "all". There is also the mode 
of
automatic detection, such as: -c -,<cpu2> (so it will assume up to cpu2 - so
0,1, and 2 CPU), or the inverse: -c <cpu2>- (which will figure the max cpus and
do it from cpu2 up to maximum cpu).

This along with 'xl vcpu-list' makes it extremely easy to trace a specific
guest (if pinned).

You can still use the -c 0x<some hex value> option if you prefer.

The patches are also at my git tree:

 git://xenbits.xen.org/people/konradwilk/xen.git xentrace.v4.1



 tools/libxc/include/xenctrl.h |  11 ++-
 tools/libxc/xc_misc.c         |  26 ++++++
 tools/libxc/xc_tbuf.c         |  33 +++++--
 tools/xentrace/xentrace.8     |  34 ++++++-
 tools/xentrace/xentrace.c     | 212 ++++++++++++++++++++++++++++++++++++++----
 5 files changed, 285 insertions(+), 31 deletions(-)

George Dunlap (1):
      libxc/xentrace: Use xc_cpumap_t for xc_tbuf_set_cpu_mask

Konrad Rzeszutek Wilk (2):
      libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu, testcpu] to complement xc_cpumap_alloc.
      xentrace: Implement cpu mask range parsing of human values (-c).

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-11 14:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23 13:29 [PATCH v4.1] Support CPU list parsing in xentrace Konrad Rzeszutek Wilk
2015-04-23 13:29 ` [PATCH v4.1 1/3] libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu, testcpu] to complement xc_cpumap_alloc Konrad Rzeszutek Wilk
2015-05-08 13:53   ` Ian Campbell
2015-04-23 13:29 ` [PATCH v4.1 2/3] libxc/xentrace: Use xc_cpumap_t for xc_tbuf_set_cpu_mask Konrad Rzeszutek Wilk
2015-04-23 13:29 ` [PATCH v4.1 3/3] xentrace: Implement cpu mask range parsing of human values (-c) Konrad Rzeszutek Wilk
2015-05-08 14:58 ` [PATCH v4.1] Support CPU list parsing in xentrace Ian Campbell
2015-05-11 14:18   ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.