search for: do_debug

Displaying 20 results from an estimated 41 matches for "do_debug".

2009 Mar 06
4
rosh patch
...dstat.st_mode)) { ROSH_DEBUG("PATH '%s' is a directory\n", ifilstr); d = fdopendir(fd); - de = readdir(d); - while (de != NULL) { + while ( de = readdir(d) ) { #ifdef DO_DEBUG filestr2[0] = 0; file2pos = strlen(filestr); @@ -401,7 +400,6 @@ #ifdef DO_DEBUG // inchar = fgetc(stdin); #endif /* DO_DEBUG */ - de = readdir(d); } clos...
2009 Aug 10
2
daemon/ warnings
...f + #endif /* GUESTFSD_DAEMON_H */ -- 1.6.4.174.gc193a >From af4e98c3371f6008188fb3ef7136c1ebda008933 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Thu, 6 Aug 2009 15:26:13 +0200 Subject: [PATCH 2/4] build: avoid warnings in daemon/debug.c * daemon/debug.c (do_debug): Mark parameters as unused. --- daemon/debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/daemon/debug.c b/daemon/debug.c index 13b7240..5b3b5fa 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -61,7 +61,7 @@ static struct cmd cmds[] = { #endif char * -do_debu...
2009 Aug 10
1
[PATCH libguestfs] build: daemon/do_debug: parameters aren't always unused
Thanks to the reminder from Dan Berrange, here's a patch to make build output less verbose, by default. E.g., instead of the redundant multi-line compilation/linking commands, you'll see something like this by default: CC guestfsd-fsck.o CC guestfsd-grep.o CC guestfsd-grub.o CC guestfsd-glob.o CC guestfsd-guestfsd.o CC guestfsd-headtail.o CC
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...ware; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,20 +22,24 @@ * ToDos: * Change functions to use pwdstr * In rosh_run() Reparse cmdstr relative to pwdstr + * rosh_ls(): sorted; then multiple columns */ -// #define DO_DEBUG 1 - /* Uncomment the above line for debugging output; Comment to remove */ -// #define DO_DEBUG2 1 - /* Uncomment the above line for super-debugging output; Must have regular debugging enabled; Comment to remove */ - +/* #define DO_DEBUG 1 +//*/ +/* Uncomment the above line for debugging output; Co...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,22 +20,24 @@ /* * ToDos: - * Change functions to use pwdstr - * In rosh_run() Reparse cmdstr relative to pwdstr + * rosh_ls(): sorted; then multiple columns */ -// #define DO_DEBUG 1 - /* Uncomment the above line for debugging output; Comment to remove */ -// #define DO_DEBUG2 1 - /* Uncomment the above line for super-debugging output; Must have regular debugging enabled; Comment to remove */ - +/*#define DO_DEBUG 1 +//*/ +/* Uncomment the above line for debugging output; Com...
2008 Oct 27
0
NEW: COM32 module to alias (Revised)
...d line // COMMAND_LINE_SIZE <asm/setup.h> on a Linux system #ifdef MAX_CMDLINE_LEN #define ALIAS_CMD_SZ MAX_CMDLINE_LEN #else #ifdef COMMAND_LINE_SIZE #define ALIAS_CMD_SZ COMMAND_LINE_SIZE #else #define ALIAS_CMD_SZ 2048 #endif /* COMMAND_LINE_SIZE */ #endif /* MAX_CMDLINE_LEN */ // #define DO_DEBUG 1 /* Uncomment this for additional output #define APP_LONGNAME "Alias COM32" #define APP_NAME "alias" #define APP_YEAR "2008" #define APP_AUTHOR "Gene Cumm" #define APP_VER "beta-b003" int main(int argc, char *argv[]) { char cmdstr[ALIAS_CMD_SZ]...
2009 Mar 07
3
rosh patch V2
Here is a second version of my patch from last night. It uses the provided ctype function isspace and does the same readdir(). I remove the rosh_issp() function. I admit to being a bit liberal with my use of braces and spaces. We all of the habit of knowing we can invent a more perfect wheel. Let me know if you have any questions. Keith -------------- next part -------------- A non-text
2008 Jun 24
3
Question related to Single-step execution and Emulation
...llowing operation: regs->eflag |= X86_EFLAGS_TF And return the control from sh_page_fault function by saying "return EFAULT_FIXED". My understanding is that with this flag set when guest completes the execution of the next instruction, it traps to Xen with exit reason TRAP_debug and do_debug handler should be invoked inside x86/traps.c. From there, again I set X86_EFLAGS_TF flag to get guest trapped for next instruction and so on. When i want it to be end I will set X86_EFLAGS_RF flag. However, when I perform above-mentioned procedure I get to see a message "Trace/breakpoint trap...
2009 Feb 15
2
COM32 module: Read-Only shell
...UX-derivitives. + * Provides minimal commands utilizing the console via stdout/stderr as the + * sole output devices. Designed to compile for Linux for testing/debugging. + */ + +/* + * ToDos: + * Change functions to use pwdstr + * In rosh_run() Reparse cmdstr relative to pwdstr + */ + +// #define DO_DEBUG 1 + /* Uncomment the above line for debugging output; Comment to remove */ +// #define DO_DEBUG2 1 + /* Uncomment the above line for super-debugging output; Must have regular debugging enabled; Comment to remove */ + +#include "rosh.h" + +#define APP_LONGNAME "Read-Only Shell" +...
2013 Nov 20
0
[PATCH -tip v3 13/23] x86/trap: Use NOKPROBE_SYMBOL macro in trap.c
...nkage __kprobes struct pt_regs *sync_regs(struct pt_regs *eregs) *regs = *eregs; return regs; } +NOKPROBE_SYMBOL(sync_regs); #endif /* @@ -406,7 +410,7 @@ asmlinkage __kprobes struct pt_regs *sync_regs(struct pt_regs *eregs) * * May run on IST stack. */ -dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code) +dotraplinkage void do_debug(struct pt_regs *regs, long error_code) { struct task_struct *tsk = current; enum ctx_state prev_state; @@ -486,6 +490,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code) exit: exception_exit(pr...
2008 Oct 22
1
NEW: COM32 module to alias
...ion */ #include <stdio.h> #include <stdlib.h> // #include <stdbool.h> #include <string.h> #ifdef __COM32__ /* Allow targetting Linux, etc to test */ #include <syslinux/boot.h> /* syslinux_run_command() */ #endif /* __COM32__ */ #define ALIAS_CMD_SZ 128 // #define DO_DEBUG 1 #define APP_LONGNAME "Alias COM32" #define APP_NAME "alias" #define APP_YEAR "2008" #define APP_AUTHOR "Gene Cumm" #define APP_VER "beta-b002" int main(int argc, char *argv[]){ char cmdstr[ALIAS_CMD_SZ]; // Command string to execute int curpo...
2009 May 28
0
[PATCH server] Use qpid for migration and add more debugging to taskomatic.
...nged, 28 insertions(+), 8 deletions(-) diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb index 22c3599..da933bf 100755 --- a/src/task-omatic/taskomatic.rb +++ b/src/task-omatic/taskomatic.rb @@ -60,6 +60,7 @@ class TaskOmatic @nth_host = 0 do_daemon = true + do_debug = false opts = OptionParser.new do |opts| opts.on("-h", "--help", "Print help message") do @@ -69,6 +70,9 @@ class TaskOmatic opts.on("-n", "--nodaemon", "Run interactively (useful for debugging)") do |n| do_d...
2009 Feb 22
2
NEW: COM32 module to run another command, optionally clearing the screen
...its.h> #include <consoles.h> #ifdef __COM32__ /* Allow targetting Linux, etc to test */ #include <syslinux/boot.h> /* syslinux_run_command() */ #else #ifdef __linux__ /* For COMMAND_LINE_SIZE */ #include <asm/setup.h> #endif /* __linux__ */ #endif /* __COM32__ */ // #define DO_DEBUG 1 /* Uncomment this for additional output */ /* Possible referenced values for command line length: * MAX_CMDLINE_LEN (com32/menu/menu.h) * LINE_MAX or _POSIX2_LINE_MAX <limits.h> on *nix systems; * Seem more appropriate for a shell command line * COMMAND_LINE_SIZE <asm/setup.h> o...
2017 May 19
0
[PATCH 03/10] xen: move interrupt handling for pv guests under CONFIG_XEN_PV umbrella
...* @@ -983,7 +983,9 @@ ENTRY(xen_failsafe_callback) ENCODE_FRAME_POINTER jmp error_exit END(xen_failsafe_callback) +#endif /* CONFIG_XEN_PV */ +#ifdef CONFIG_XEN apicinterrupt3 HYPERVISOR_CALLBACK_VECTOR \ xen_hvm_callback_vector xen_evtchn_do_upcall @@ -998,7 +1000,7 @@ idtentry debug do_debug has_error_code=0 paranoid=1 shift_ist=DEBUG_STACK idtentry int3 do_int3 has_error_code=0 paranoid=1 shift_ist=DEBUG_STACK idtentry stack_segment do_stack_segment has_error_code=1 -#ifdef CONFIG_XEN +#ifdef CONFIG_XEN_PV idtentry xen_debug do_debug has_error_code=0 idtentry xen_int3 d...
2020 Feb 11
0
[PATCH 62/62] x86/sev-es: Add NMI state tracking
...T(); + + this_cpu_write(sev_es_in_nmi, false); +} + static u64 sev_es_get_jump_table_addr(void) { unsigned long flags; @@ -485,7 +508,10 @@ static enum es_result handle_vmmcall(struct ghcb *ghcb, static enum es_result handle_db_exception(struct ghcb *ghcb, struct es_em_ctxt *ctxt) { - do_debug(ctxt->regs, 0); + if (this_cpu_read(sev_es_in_nmi)) + sev_es_nmi_complete(); + else + do_debug(ctxt->regs, 0); /* Exception event, do not advance RIP */ return ES_RETRY; -- 2.17.1
2011 Aug 24
0
Bug#639112: xen: DomU access to dual-ported RAM area on PCI card fails
...mmu+0x5/0xa [ 357.820021] [<c10a4910>] ? remap_pfn_range+0x286/0x303 [ 357.820021] [<c892846e>] ? uio_mmap+0xbc/0xe1 [uio] [ 357.820021] [<c10a81ed>] ? mmap_region+0x267/0x443 [ 357.820021] [<c109e10a>] ? sys_mmap_pgoff+0xc8/0x147 [ 357.820021] [<c128fb5c>] ? do_debug+0x117/0x126 [ 357.820021] [<c1008f7c>] ? syscall_call+0x7/0xb [ 357.820021] ------------[ cut here ]------------ [ 357.820021] WARNING: at /tmp/buildd/linux-2.6-2.6.32/debian/build/source_i386_xen/arch/x86/xen/multicalls.c:182 xen_leave_lazy_mmu+0x5/0xa() [ 357.820021] Modules linked in:...
1997 Nov 13
0
Linux F00F Patch [Forwarded e-mail from Aleph One]
...e void divide_error(void); +asmlinkage void debug(void); +asmlinkage void nmi(void); +asmlinkage void int3(void); +asmlinkage void overflow(void); +asmlinkage void bounds(void); +asmlinkage void invalid_op(void); + +asmlinkage void do_divide_error (struct pt_regs *, unsigned long); +asmlinkage void do_debug (struct pt_regs *, unsigned long); +asmlinkage void do_nmi (struct pt_regs *, unsigned long); +asmlinkage void do_int3 (struct pt_regs *, unsigned long); +asmlinkage void do_overflow (struct pt_regs *, unsigned long); +asmlinkage void do_bounds (struct pt_regs *, unsigned long); +asmlinkage void do...
2007 Apr 18
1
Patch: use .pushsection/.popsection
...\ jmp 27b; \ -.previous +.popsection = /* * Build the entry stubs and pointer table with @@ -639,7 +639,7 @@ error_code: call *%edi jmp ret_from_exception CFI_ENDPROC -.previous +KPROBE_EXIT = ENTRY(coprocessor_error) RING0_INT_FRAME @@ -715,7 +715,7 @@ debug_stack_correct: call do_debug jmp ret_from_exception CFI_ENDPROC -.previous +KPROBE_EXIT = /* * NMI is doubly nasty. It can happen _while_ we're handling @@ -795,12 +795,12 @@ nmi_16bit_stack: call do_nmi RESTORE_REGS lss 12+4(%esp), %esp # back to 16bit stack -1: INTERRUPT_RETURN - CFI_ENDPROC -.section __e...
2007 Apr 18
1
Patch: use .pushsection/.popsection
...\ jmp 27b; \ -.previous +.popsection = /* * Build the entry stubs and pointer table with @@ -639,7 +639,7 @@ error_code: call *%edi jmp ret_from_exception CFI_ENDPROC -.previous +KPROBE_EXIT = ENTRY(coprocessor_error) RING0_INT_FRAME @@ -715,7 +715,7 @@ debug_stack_correct: call do_debug jmp ret_from_exception CFI_ENDPROC -.previous +KPROBE_EXIT = /* * NMI is doubly nasty. It can happen _while_ we're handling @@ -795,12 +795,12 @@ nmi_16bit_stack: call do_nmi RESTORE_REGS lss 12+4(%esp), %esp # back to 16bit stack -1: INTERRUPT_RETURN - CFI_ENDPROC -.section __e...
2013 Nov 15
0
[PATCH -tip RFC v2 01/22] kprobes: Prohibit probing on .entry.text code
...PIC interrupts. @@ -1477,11 +1466,6 @@ apicinterrupt3 HYPERVISOR_CALLBACK_VECTOR \ hyperv_callback_vector hyperv_vector_handler #endif /* CONFIG_HYPERV */ -/* - * Some functions should be protected against kprobes - */ - .pushsection .kprobes.text, "ax" - paranoidzeroentry_ist debug do_debug DEBUG_STACK paranoidzeroentry_ist int3 do_int3 DEBUG_STACK paranoiderrorentry stack_segment do_stack_segment @@ -1898,7 +1882,3 @@ ENTRY(ignore_sysret) CFI_ENDPROC END(ignore_sysret) -/* - * End of kprobes section - */ - .popsection diff --git a/kernel/kprobes.c b/kernel/kprobes.c index a0d3...