search for: dprintk

Displaying 20 results from an estimated 227 matches for "dprintk".

Did you mean: printk
2011 Jun 21
13
VM disk I/O limit patch
...-------------------------------- diff -urNp blkback/blkback.c blkback-qos/blkback.c --- blkback/blkback.c 2011-06-22 07:54:19.000000000 +0800 +++ blkback-qos/blkback.c 2011-06-22 07:53:18.000000000 +0800 @@ -44,6 +44,11 @@ #include <asm/hypervisor.h> #include "common.h" +#undef DPRINTK +#define DPRINTK(fmt, args...) \ + printk("blkback/blkback (%s:%d) " fmt ".\n", \ + __FUNCTION__, __LINE__, ##args) + /* * These are rather arbitrary. They are fairly large because adjacent requests * pulled from a communication ring are quite likely to end up being pa...
2011 Jun 21
13
VM disk I/O limit patch
...-------------------------------- diff -urNp blkback/blkback.c blkback-qos/blkback.c --- blkback/blkback.c 2011-06-22 07:54:19.000000000 +0800 +++ blkback-qos/blkback.c 2011-06-22 07:53:18.000000000 +0800 @@ -44,6 +44,11 @@ #include <asm/hypervisor.h> #include "common.h" +#undef DPRINTK +#define DPRINTK(fmt, args...) \ + printk("blkback/blkback (%s:%d) " fmt ".\n", \ + __FUNCTION__, __LINE__, ##args) + /* * These are rather arbitrary. They are fairly large because adjacent requests * pulled from a communication ring are quite likely to end up being pa...
2011 Mar 09
0
[PATCH 04/11] x86: cleanup mpparse.c
...int ver, apicid, cpu = 0; physid_mask_t phys_cpu; @@ -108,55 +93,7 @@ static int __devinit MP_processor_info_x if (!(m->mpc_cpuflag & CPU_ENABLED)) return -EINVAL; - apicid = mpc_apic_id(m, apicidx, translation_table[mpc_record]); - - if (m->mpc_featureflag&(1<<0)) - Dprintk(" Floating point unit present.\n"); - if (m->mpc_featureflag&(1<<7)) - Dprintk(" Machine Exception supported.\n"); - if (m->mpc_featureflag&(1<<8)) - Dprintk(" 64 bit compare & exchange supported.\n"); - if (m->mpc_featurefla...
2006 Oct 27
0
[PATCH 6/6 V2] log level ia64 DPRINTK
This patch updates the ia64 arch to have DPRINTK use the new log levels. Signed-off-by: Steven Rostedt <srostedt@redhat.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2007 Nov 02
0
[cpfreq][PATCH][2/2] Linux support for the architectural pstate driver
...if (index > data->max_hw_pstate) { printk(KERN_ERR PFX "invalid pstate %d - bad value %d.\n", i, index); printk(KERN_ERR PFX "Please report to BIOS manufacturer\n"); - } - rdmsr(MSR_PSTATE_DEF_BASE + index, lo, hi); - if (!(hi & HW_PSTATE_VALID_MASK)) { - dprintk("invalid pstate %d, ignoring\n", index); - powernow_table[i].frequency = CPUFREQ_ENTRY_INVALID; continue; } - fid = lo & HW_PSTATE_FID_MASK; - did = (lo & HW_PSTATE_DID_MASK) >> HW_PSTATE_DID_SHIFT; - - dprintk(" %d : fid 0x%x, did 0x%x\n", index, f...
2011 Dec 01
11
[PATCH 0 of 2] Paging support updates for XCP dom0
This is a cherry pick of two patches that add support for guest paged out frames in the XCP 2.6.32 dom0 patch queue. First patch propagates the ENOENT returned by the hypervisor in the case of a paged out page, all the way up the call chain to the MMAPBATCH_V2 ioctl. The ioctl is mainly used to harvest those return values and retry. The second patch adds retry loops to all backend grant
2017 Oct 04
1
[PATCH 10/13] x86/alternative: Support indirect call replacement
...g uninitialized bytes for zero-length replacements. + * Fix the address offsets for call and jump instructions which + * use PC-relative addressing. */ if (a->replacementlen == 5 && *insnbuf == 0xe8) { + /* direct call */ *(s32 *)(insnbuf + 1) += replacement - instr; - DPRINTK("Fix CALL offset: 0x%x, CALL 0x%lx", + DPRINTK("Fix direct CALL offset: 0x%x, CALL 0x%lx", *(s32 *)(insnbuf + 1), (unsigned long)instr + *(s32 *)(insnbuf + 1) + 5); - } - if (a->replacementlen && is_jmp(replacement[0])) + } else if (a->replacementl...
2017 Nov 16
1
[PATCH 10/13] x86/alternative: Support indirect call replacement
...x the address offsets for call and jump instructions which > > + * use PC-relative addressing. > > */ > > if (a->replacementlen == 5 && *insnbuf == 0xe8) { > > + /* direct call */ > > *(s32 *)(insnbuf + 1) += replacement - instr; > > - DPRINTK("Fix CALL offset: 0x%x, CALL 0x%lx", > > + DPRINTK("Fix direct CALL offset: 0x%x, CALL 0x%lx", > > *(s32 *)(insnbuf + 1), > > (unsigned long)instr + *(s32 *)(insnbuf + 1) + 5); > > - } > > > > - if (a->replacementlen &&a...
2017 Nov 16
1
[PATCH 10/13] x86/alternative: Support indirect call replacement
...x the address offsets for call and jump instructions which > > + * use PC-relative addressing. > > */ > > if (a->replacementlen == 5 && *insnbuf == 0xe8) { > > + /* direct call */ > > *(s32 *)(insnbuf + 1) += replacement - instr; > > - DPRINTK("Fix CALL offset: 0x%x, CALL 0x%lx", > > + DPRINTK("Fix direct CALL offset: 0x%x, CALL 0x%lx", > > *(s32 *)(insnbuf + 1), > > (unsigned long)instr + *(s32 *)(insnbuf + 1) + 5); > > - } > > > > - if (a->replacementlen &&a...
2012 Nov 28
2
[PATCH] VT-d: make scope parsing code type safe
...th *path; + struct acpi_drhd_unit *drhd = type == DMAR_TYPE ? + container_of(scope, struct acpi_drhd_unit, scope) : NULL; int depth, cnt, didx = 0; if ( (cnt = scope_device_count(start, end)) < 0 ) @@ -359,9 +361,8 @@ static int __init acpi_parse_dev_scope( dprintk(VTDPREFIX, " MSI HPET: %04x:%02x:%02x.%u\n", seg, bus, path->dev, path->fn); - if ( type == DMAR_TYPE ) + if ( drhd ) { - struct acpi_drhd_unit *drhd = acpi_entry; struct acpi_hpet_unit *ac...
2004 Jun 22
3
[ANNOUNCE] sch_ooo - Out-of-order packet queue discipline
...+#include <linux/tcp.h> +#include <linux/time.h> + +#include <linux/proc_fs.h> +#include <asm/uaccess.h> + +#include <linux/string.h> +#include <linux/netdevice.h> +#include <net/pkt_sched.h> + +#define MODULE_NAME "sch_ooo v0.1" + +#if 0 +#define DPRINTK(format,args...) printk(KERN_DEBUG MODULE_NAME ": " format, ##args) +#else +#define DPRINTK(format,args...) +#endif + + +/* global variables */ + +/* qdisc internal data */ +struct ooo_sched_data { + __u32 limit; /* in packets */ + __u32 gap; /* gap + 1 between ooo packets */ + __u32...
2010 Mar 11
0
[PATCH] VT-d: various initialization fixes
...000000000 +0100 +++ 2010-03-02/xen/drivers/passthrough/vtd/iommu.c 2010-03-09 13:51:03.000000000 +0100 @@ -1068,9 +1068,21 @@ static int iommu_alloc(struct acpi_drhd_ iommu->cap = dmar_readq(iommu->reg, DMAR_CAP_REG); iommu->ecap = dmar_readq(iommu->reg, DMAR_ECAP_REG); - dprintk(XENLOG_INFO VTDPREFIX, - "drhd->address = %"PRIx64"\n", drhd->address); - dprintk(XENLOG_INFO VTDPREFIX, "iommu->reg = %p\n", iommu->reg); + drhd->iommu = iommu; + + dprintk(XENLOG_DEBUG VTDPREFIX, + "drhd->address...
2010 Sep 15
15
xenpaging fixes for kernel and hypervisor
Patrick, there following patches fix xenpaging for me. Granttable handling is incomplete. If a page is gone, a GNTST_eagain should be returned to the caller to inidcate the hypercall has to be retried after a while, until the page is available again. Please review. Olaf _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...quot;Dor Laor"); +MODULE_DESCRIPTION ("Implements guest ballooning support"); +MODULE_LICENSE("GPL"); +MODULE_VERSION("1"); + +#define CMD_BALLOON_INFLATE 0x1 +#define CMD_BALLOON_DEFLATE 0x2 + +static int kvm_balloon_debug; + +#define DEBUG +#ifdef DEBUG +#define dprintk(str...) if (kvm_balloon_debug) printk(str) +#else +#define dprintk(str...) +#endif + +static LIST_HEAD(balloon_plist); +static LIST_HEAD(balloon_work); +static int balloon_size = 0; +static DEFINE_SPINLOCK(balloon_plist_lock); +static DEFINE_SPINLOCK(balloon_queue_lock); + +struct virtio_balloon_hd...
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...quot;Dor Laor"); +MODULE_DESCRIPTION ("Implements guest ballooning support"); +MODULE_LICENSE("GPL"); +MODULE_VERSION("1"); + +#define CMD_BALLOON_INFLATE 0x1 +#define CMD_BALLOON_DEFLATE 0x2 + +static int kvm_balloon_debug; + +#define DEBUG +#ifdef DEBUG +#define dprintk(str...) if (kvm_balloon_debug) printk(str) +#else +#define dprintk(str...) +#endif + +static LIST_HEAD(balloon_plist); +static LIST_HEAD(balloon_work); +static int balloon_size = 0; +static DEFINE_SPINLOCK(balloon_plist_lock); +static DEFINE_SPINLOCK(balloon_queue_lock); + +struct virtio_balloon_hd...
2017 Oct 25
0
[PATCH 10/13] x86/alternative: Support indirect call replacement
...th replacements. > + * Fix the address offsets for call and jump instructions which > + * use PC-relative addressing. > */ > if (a->replacementlen == 5 && *insnbuf == 0xe8) { > + /* direct call */ > *(s32 *)(insnbuf + 1) += replacement - instr; > - DPRINTK("Fix CALL offset: 0x%x, CALL 0x%lx", > + DPRINTK("Fix direct CALL offset: 0x%x, CALL 0x%lx", > *(s32 *)(insnbuf + 1), > (unsigned long)instr + *(s32 *)(insnbuf + 1) + 5); > - } > > - if (a->replacementlen && is_jmp(replacement[0])) &g...
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
....h> +#include <linux/kvm_types.h> +#include <linux/kvm_host.h> + +MODULE_AUTHOR ("Dor Laor"); +MODULE_DESCRIPTION ("Implements guest ballooning support"); +MODULE_LICENSE("GPL"); +MODULE_VERSION("1"); + +static int kvm_balloon_debug; + +#define dprintk(dev, str...) if (kvm_balloon_debug) dev_dbg(dev, str) + +#define BALLOON_DATA_SIZE 200 + +struct balloon_buf { + struct virtio_balloon_hdr hdr; + u8 data[BALLOON_DATA_SIZE]; +}; + +struct balloon_work { + struct balloon_buf *buf; + struct list_head list; +}; + +#define VIRTIO_MAX_SG 2 + +struct vir...
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
....h> +#include <linux/kvm_types.h> +#include <linux/kvm_host.h> + +MODULE_AUTHOR ("Dor Laor"); +MODULE_DESCRIPTION ("Implements guest ballooning support"); +MODULE_LICENSE("GPL"); +MODULE_VERSION("1"); + +static int kvm_balloon_debug; + +#define dprintk(dev, str...) if (kvm_balloon_debug) dev_dbg(dev, str) + +#define BALLOON_DATA_SIZE 200 + +struct balloon_buf { + struct virtio_balloon_hdr hdr; + u8 data[BALLOON_DATA_SIZE]; +}; + +struct balloon_work { + struct balloon_buf *buf; + struct list_head list; +}; + +#define VIRTIO_MAX_SG 2 + +struct vir...
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...ed_work(aio_wq, &ctx->wq, timeout); + } + +@@ -1435,6 +1437,9 @@ static ssize_t aio_setup_iocb(struct kio + if (file->f_op->aio_fsync) + kiocb->ki_retry = aio_fsync; + break; ++ case IOCB_CMD_EPOLL_WAIT: ++ kiocb->ki_retry = eventpoll_aio_wait; ++ break; + default: + dprintk("EINVAL: io_submit: no operation provided\n"); + ret = -EINVAL; +diff --git a/fs/eventpoll.c b/fs/eventpoll.c +index 4284cd3..3aca096 100644 +--- a/fs/eventpoll.c ++++ b/fs/eventpoll.c +@@ -34,6 +34,7 @@ #include <linux/wait.h> + #include <linux/eventpoll.h> + #include <l...
2008 May 19
1
[PATCH 0/2] dm-ioband: I/O bandwidth controller v1.0.0: Introduction
Hi everyone, This is dm-ioband version 1.0.0 release. Dm-ioband is an I/O bandwidth controller implemented as a device-mapper driver, which gives specified bandwidth to each job running on the same physical device. - Can be applied to the kernel 2.6.26-rc2-mm1. - Changes from 0.0.4 (24th April): - Performance tuning - A new bandwidth control policy is added. This policy controls