mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
Allow all trace-buffer hypercalls to be executed even when tracing is currently disabled.
From: George Dunlap Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
a0746b30b0
commit
6af99de37c
1 file changed
+1
-9
+1
-9
@@ -178,20 +178,12 @@ int tb_control(dom0_tbufcontrol_t *tbc)
|
||||
|
||||
spin_lock(&lock);
|
||||
|
||||
if ( !tb_init_done &&
|
||||
(tbc->op != DOM0_TBUF_SET_SIZE) &&
|
||||
(tbc->op != DOM0_TBUF_ENABLE) )
|
||||
{
|
||||
spin_unlock(&lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
switch ( tbc->op )
|
||||
{
|
||||
case DOM0_TBUF_GET_INFO:
|
||||
tbc->cpu_mask = tb_cpu_mask;
|
||||
tbc->evt_mask = tb_event_mask;
|
||||
tbc->buffer_mfn = __pa(t_bufs[0]) >> PAGE_SHIFT;
|
||||
tbc->buffer_mfn = opt_tbuf_size ? virt_to_mfn(t_bufs[0]) : 0UL;
|
||||
tbc->size = opt_tbuf_size * PAGE_SIZE;
|
||||
break;
|
||||
case DOM0_TBUF_SET_CPU_MASK:
|
||||
|
||||