Displaying 20 results from an estimated 2093 matches for "printk".
2008 Apr 26
4
how to use printk() in xen?
hi, all:
i want to add a function in xen. in the function i need to call the "printk" to display the values of some variables.
i found the definition of printk() in file "xen-3.1.0-src\xen\include\xen\lib.h ":
extern void printk(const char *format, ...)
__attribute__ ((format (printf, 1, 2)));
who can tell me the location of printk()?
thanks in advance.
2008...
2010 Oct 13
1
Migrate PV - BUG: recent printk recursion
...'m getting errors while live migrating a pv guest.
I''m running Xen 3.4.3 on CentOS 5.5, DRBD 8.3.8.1 and OCFS2 1.4.7-1. The two
servers are identical.
After live migrating the Debian lenny PV guest(2.6.26-2-686-bigmem), it
crashes, It prints this on console
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG: recent printk recursion!
[ 502.689357] BUG...
2010 Mar 11
0
[PATCH] VT-d: various initialization fixes
...00000000 +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...
2017 Feb 28
8
[PATCH 2/2] gpu: drm: Convert printk(KERN_<LEVEL> to pr_<level>
...+ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -1515,7 +1515,8 @@ void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v);
> */
> #define RREG32(reg) amdgpu_mm_rreg(adev, (reg), false)
> #define RREG32_IDX(reg) amdgpu_mm_rreg(adev, (reg), true)
> -#define DREG32(reg) printk(KERN_INFO "REGISTER: " #reg " : 0x%08X\n", amdgpu_mm_rreg(adev, (reg), false))
> +#define DREG32(reg) pr_info("REGISTER: " #reg " : 0x%08X\n", \
> + amdgpu_mm_rreg(adev, (reg), false))
> #define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v),...
2017 Feb 28
0
[PATCH 2/2] gpu: drm: Convert printk(KERN_<LEVEL> to pr_<level>
...rm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1515,7 +1515,8 @@ void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v);
*/
#define RREG32(reg) amdgpu_mm_rreg(adev, (reg), false)
#define RREG32_IDX(reg) amdgpu_mm_rreg(adev, (reg), true)
-#define DREG32(reg) printk(KERN_INFO "REGISTER: " #reg " : 0x%08X\n", amdgpu_mm_rreg(adev, (reg), false))
+#define DREG32(reg) pr_info("REGISTER: " #reg " : 0x%08X\n", \
+ amdgpu_mm_rreg(adev, (reg), false))
#define WREG32(reg, v) amdgpu_mm_wreg(adev, (reg), (v), false)
#defin...
2017 Feb 28
2
[PATCH 0/2] gpu: drm: Use pr_cont and neaten logging
Joe Perches (2):
drm: Use pr_cont where appropriate
gpu: drm: Convert printk(KERN_<LEVEL> to pr_<level>
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +-
drivers/gpu/drm/am...
2017 Feb 28
0
[PATCH 3/3] gpu: drm: drivers: Convert printk(KERN_<LEVEL> to pr_<level>
...4 100644
--- a/drivers/gpu/drm/gma500/cdv_intel_lvds.c
+++ b/drivers/gpu/drm/gma500/cdv_intel_lvds.c
@@ -284,8 +284,7 @@ static bool cdv_intel_lvds_mode_fixup(struct drm_encoder *encoder,
head) {
if (tmp_encoder != encoder
&& tmp_encoder->crtc == encoder->crtc) {
- printk(KERN_ERR "Can't enable LVDS and another "
- "encoder on the same pipe\n");
+ pr_err("Can't enable LVDS and another encoder on the same pipe\n");
return false;
}
}
@@ -756,13 +755,13 @@ void cdv_intel_lvds_init(struct drm_device *dev,
fail...
2013 Jan 25
1
[PATCH] HAP: Add global enable/disable command line option
...ER_LONG];
+/* Xen command-line option to enable HAP */
+static int opt_hap_enabled = 1;
+boolean_param("hap", opt_hap_enabled);
+
static int cpu_callback(
struct notifier_block *nfb, unsigned long action, void *hcpu)
{
@@ -125,14 +129,23 @@ static int __init hvm_enable(void)
printk("HVM: %s enabled\n", hvm_funcs.name);
if ( hvm_funcs.hap_supported )
{
- printk("HVM: Hardware Assisted Paging (HAP) detected\n");
- printk("HVM: HAP page sizes: 4kB");
- if ( hvm_funcs.hap_capabilities & HVM_HAP_SUPERPAGE_2MB )
-...
2013 Dec 03
7
[PATCH] xen: arm: Fixing ttbcr (TCR_EL1 for AArch64) size.
This patch fixes size of ttbcr register (TCR_EL1 in case of AArch64)
and it''s programming considering size in case of context switch.
Currently ttbcr is defined as 32b register but for AArch64 TCR_EL1
size is 64b.
Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
---
xen/arch/arm/domain.c | 8
2013 Mar 15
0
[PATCH] Btrfs: add some free space cache tests
...This test just does basic sanity checking, making sure we can add an exten
+ * entry and remove space from either end and the middle, and make sure we can
+ * remove space that covers adjacent extent entries.
+ */
+static int test_extents(struct btrfs_block_group_cache *cache)
+{
+ int ret = 0;
+
+ printk(KERN_ERR "Running extent only tests\n");
+
+ /* First just make sure we can remove an entire entry */
+ ret = btrfs_add_free_space(cache, 0, 4 * 1024 * 1024);
+ if (ret) {
+ printk(KERN_ERR "Error adding initial extents %d\n", ret);
+ return ret;
+ }
+
+ ret = btrfs_remove_fre...
2013 Jun 28
3
[PATCH next] xen: Use more current logging styles
Instead of mixing printk and pr_<level> forms,
just use pr_<level>
Miscellaneous changes around these conversions:
Add a missing newline to avoid message interleaving,
coalesce formats, reflow modified lines to 80 columns.
Signed-off-by: Joe Perches <joe at perches.com>
---
drivers/net/xen-netback/net...
2013 Jun 28
3
[PATCH next] xen: Use more current logging styles
Instead of mixing printk and pr_<level> forms,
just use pr_<level>
Miscellaneous changes around these conversions:
Add a missing newline to avoid message interleaving,
coalesce formats, reflow modified lines to 80 columns.
Signed-off-by: Joe Perches <joe at perches.com>
---
drivers/net/xen-netback/net...
2013 Jun 28
3
[PATCH next] xen: Use more current logging styles
Instead of mixing printk and pr_<level> forms,
just use pr_<level>
Miscellaneous changes around these conversions:
Add a missing newline to avoid message interleaving,
coalesce formats, reflow modified lines to 80 columns.
Signed-off-by: Joe Perches <joe at perches.com>
---
drivers/net/xen-netback/net...
2012 Dec 19
1
[PATCH] x86: also print CRn register values upon double fault
...void double_fault(void);
void do_double_fault(struct cpu_user_regs *regs)
{
unsigned int cpu;
+ unsigned long crs[8];
watchdog_disable();
@@ -235,22 +236,18 @@ void do_double_fault(struct cpu_user_reg
/* Find information saved during fault and dump it to the console. */
printk("*** DOUBLE FAULT ***\n");
print_xen_info();
- printk("CPU: %d\nRIP: %04x:[<%016lx>]",
- cpu, regs->cs, regs->rip);
- print_symbol(" %s", regs->rip);
- printk("\nRFLAGS: %016lx\n", regs->rflags);
- printk(&qu...
2012 May 07
0
[PATCH V2] btrfs: fix message printing
...->aborted = errno;
/* Nothing used. The other threads that have joined this
* transaction may be able to continue. */
@@ -511,11 +511,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG);
break;
case Opt_defrag:
- printk(KERN_INFO "btrfs: enabling auto defrag");
+ printk(KERN_INFO "btrfs: enabling auto defrag\n");
btrfs_set_opt(info->mount_opt, AUTO_DEFRAG);
break;
case Opt_recovery:
- printk(KERN_INFO "btrfs: enabling auto recovery");
+ printk(KERN_INFO "btrfs...
2012 Jan 16
6
Sound not working properly on Xen Dom0, but works on native
Hi,
I''m doing some testing on Ubuntu 12.04 Alpha. All sounds comes out as
static on the Dom0 system. (I can PCI passthrough the audio card to a
DomU and that works). Native sound works fine.
Linux kronos 3.2.0-8-generic-pae #15-Ubuntu SMP Wed Jan 11 15:34:57
UTC 2012 i686 i686 i386 GNU/Linux
Here is the "ubuntu-bug audio" generated report:
2011 Jun 27
7
bnx2 FTQ issues on 2.6.32 + xen 4.0.1;
Hi Michael:
Sorry to brother. But I''ve been suffered this issue quite a long time.
My test environment is 2.6.32.36 + xen 4.0.1 + bnx2, 2.3.
Also cpu idle is disabled in grub.
Grub info:
title Red Hat Enterprise Linux Server (2.6.32.36xen)
kernel /xen-4.0.1.gz iommu=off x2apic=off console=com1,vga com1=115200,8n1 noreboot cpuidle=0 cpufreq=none
2012 Jul 30
3
[PATCH] Intel VT-d: Dump IOMMU supported page sizes
...eac926cf80 xen/drivers/passthrough/vtd/iommu.c
--- a/xen/drivers/passthrough/vtd/iommu.c Fri Jul 27 12:22:13 2012 +0200
+++ b/xen/drivers/passthrough/vtd/iommu.c Mon Jul 30 15:35:16 2012 -0700
@@ -2137,6 +2137,15 @@ int __init intel_vtd_setup(void)
{
iommu = drhd->iommu;
+ printk("Intel VT-d supported page sizes: 4kB");
+ if (cap_sps_2mb(iommu->cap))
+ printk(", 2MB");
+
+ if (cap_sps_1gb(iommu->cap))
+ printk(", 1GB");
+
+ printk(".\n");
+
if ( iommu_snoop && !ecap_snp...
2008 Oct 29
0
[Fwd: How do I printk <type> correctly?]
Hi Folks,
Please read the below post - I keep having to fix up printk-related
build warnings, usually because I miss them on x86_64, then someone builds
on ia64 or ppc, etc and e-mails me. This is trivial to avoid though - we
keep making the same mistake:
{
u64 block;
printk("block: %llu\n", block);
}
That code above will generate a warning similar to:...
2007 Apr 18
2
refactoring io_apic.c
...e();
}
-void disconnect_bsp_APIC(void)
-{
- if (pic_mode) {
- /*
- * Put the board back into PIC mode (has an effect
- * only on certain older boards). Note that APIC
- * interrupts, including IPIs, won't work beyond
- * this point! The only exception are INIT IPIs.
- */
- apic_printk(APIC_VERBOSE, "disabling APIC mode, "
- "entering PIC mode.\n");
- outb(0x70, 0x22);
- outb(0x00, 0x23);
- }
-}
-
void disable_local_APIC(void)
{
unsigned long value;
@@ -298,22 +282,6 @@ int __init verify_local_APIC(void)
return 1;
}
-void __init sync_Arb_IDs(void...