search for: savectx

Displaying 12 results from an estimated 12 matches for "savectx".

Did you mean: save_ctx
2008 Dec 02
18
How to dig deeper
...: %d" , timestamp); printf("\telapsed : %d" , elapsed); exit(0); } I gives me the timestamp for every fbt call during a write system call. A snippet is here below 8 <- schedctl_save timestamp : 1627201334052600 8 <- savectx timestamp : 1627201334053000 0 -> restorectx timestamp : 1627202741110300 <-------- difference = 1.407.057.300 0 -> schedctl_restore timestamp : 1627202741115100 0 <- schedctl_restore times...
2011 Oct 05
0
[LLVMdev] setjmp - longjmp
...detect setjmp functions by name. My code is calling "__sigsetjmp" not "segsetjmp". You only support these functions: static const char *ReturnsTwiceFns[] = { "_setjmp", "setjmp", "sigsetjmp", "setjmp_syscall", "savectx", "qsetjmp", "vfork", "getcontext" }; I think if I add mine to this list, it should work. I will try that. Thanks, -Khaled On Tue, Oct 4, 2011 at 7:15 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote: > > On Oct 4, 2011, at 3:53 PM...
2011 Oct 04
2
[LLVMdev] setjmp - longjmp
On Oct 4, 2011, at 3:53 PM, Eli Friedman wrote: > On Tue, Oct 4, 2011 at 3:10 PM, Khaled ElWazeer > <khalid.alwazeer at gmail.com> wrote: >> Hi, >> >> I have some code which has sigsetjmp / longjmp. After a longjmp, unreachable >> is inserted, which is fine. The problem is that in the backend before >> calling longjmp, some register was spilled to a
2006 Mar 30
8
iostat -xn 5 _donot_ update: how to use DTrace
on Solaris 10 5.10 Generic_118822-23 sun4v sparc SUNW,Sun-Fire-T200 I run #iostat -xn 5 to monitor the IO statistics on SF T2000 server. The system also have a heavy IO load, for some reason iostat donot refresh (no any update). It seems like iostat is calling pause() and stucked there. Also my HBA driver''s interrupt stack trace indicates there is a lot of swtch(), the overall IOPS
2011 Oct 05
1
[LLVMdev] setjmp - longjmp
...de is calling "__sigsetjmp" not "segsetjmp". You only support > these functions: > > static const char *ReturnsTwiceFns[] = { > "_setjmp", > "setjmp", > "sigsetjmp", > "setjmp_syscall", > "savectx", > "qsetjmp", > "vfork", > "getcontext" > }; > > I think if I add mine to this list, it should work. I will try that. > > Thanks, > -Khaled > > > On Tue, Oct 4, 2011 at 7:15 PM, Jakob Stoklund Olesen <stoklund...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...ot;), - guestfs_int_program_name); - exit (EXIT_FAILURE); - } + if (xpathObj == NULL) + error (EXIT_FAILURE, 0, _("unable to evaluate XPath expression")); switch (xpathObj->type) { case XPATH_NODESET: @@ -808,33 +784,21 @@ do_xpath (const char *query) saveCtx = xmlSaveToFd (STDOUT_FILENO, NULL, XML_SAVE_NO_DECL | XML_SAVE_FORMAT); - if (saveCtx == NULL) { - fprintf (stderr, _("%s: xmlSaveToFd failed\n"), - guestfs_int_program_name); - exit (EXIT_FAILURE); - } + if (saveCtx == NULL) +...
2003 Jun 06
0
crash in networking code (with bt and debug kernel)
...3 0x80543b7 in ?? () #24 0x805440a in ?? () #25 0x805d913 in ?? () #26 0x8058324 in ?? () #27 0x8059539 in ?? () #28 0x8059989 in ?? () #29 0x8061456 in ?? () #30 0x804c929 in ?? () #31 0x8049c3e in ?? () (kgdb) list 482 dumpsys(void) 483 { 484 int error; 485 486 savectx(&dumppcb); 487 if (dumping++) { 488 printf("Dump already in progress, bailing...\n"); 489 return; 490 } 491 if (!dodump) (kgdb) up 1 #1 0xc0150bec in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did: if (something_bad) { perror (...); exit (EXIT_FAILURE); } replace this with use of the error(3) function: if (something_bad) error (EXIT_FAILURE, errno, ...); The error(3) function is supplied by glibc, or by gnulib on platforms which don't have it, and is much more flexible than perror(3). Since we already use error(3), there seems to be
2003 Aug 12
2
panic with today's stable
...672622500, tf_cs = 31, tf_eflags = 647, tf_esp = -1077936892, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1175 #16 0xc027fb05 in Xint0x80_syscall () Cannot access memory at address 0xbfbffd30. (kgdb) (kgdb) list 482 dumpsys(void) 483 { 484 int error; 485 486 savectx(&dumppcb); 487 if (dumping++) { 488 printf("Dump already in progress, bailing...\n"); 489 return; 490 } 491 if (!dodump) (kgdb) up #1 0xc01618fc in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316 31...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...(stderr, _("%s: xmlCopyNode failed\n"), guestfs_int_program_name); + fprintf (stderr, _("%s: xmlCopyNode failed\n"), + guestfs_int_program_name); exit (EXIT_FAILURE); } xmlDocSetRootElement (wrdoc, wrnode); if (xmlSaveDoc (saveCtx, wrdoc) == -1) { - fprintf (stderr, _("%s: xmlSaveDoc failed\n"), guestfs_int_program_name); + fprintf (stderr, _("%s: xmlSaveDoc failed\n"), + guestfs_int_program_name); exit (EXIT_FAILURE); } } diff --git a/make-fs/make-fs.c b...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67