This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#define BUFSIZE 80 | |
int main(int argc, char *argv[]) { | |
char employee[BUFSIZE] = "John,Doe,john@example.com"; | |
char name[BUFSIZE] = {0}; | |
char surname[BUFSIZE] = {0}; | |
char *email; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEMSTOMP(1) General Commands Manual MEMSTOMP(1) | |
NAME | |
memstomp - detect function calls with overlapping memory regions | |
SYNOPSIS | |
memstomp [-dk] application [argument...] | |
memstomp -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ memstomp -d ./employee | |
memstomp: 0.1.4 successfully initialized for process employee (pid 30842). | |
strcat(dest=0x7fff82e79285, src=0x7fff82e79289, bytes=21) overlap for employee(30842) | |
??:0 strcpy() | |
??:0 strcpy() | |
??:0 strcat() | |
employee.c:26 main() | |
??:0 __libc_start_main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44.43% ebizzy ebizzy [.] memcpy | |
30.67% ebizzy [kernel.kallsyms] [k] default_send_IPI_mask_allbutself_phys a | |
12.52% ebizzy [kernel.kallsyms] [k] _raw_spin_unlock_irqrestore a | |
6.11% ebizzy [kernel.kallsyms] [k] smp_call_function_many a | |
0.87% ebizzy [kernel.kallsyms] [k] __do_softirq a | |
0.57% ebizzy [kernel.kallsyms] [k] lazyfree_range a | |
0.52% ebizzy [kernel.kallsyms] [k] deactivate_page a | |
0.45% ebizzy ebizzy [.] write_pattern a | |
0.36% ebizzy [kernel.kallsyms] [k] release_pages a | |
0.28% ebizzy [kernel.kallsyms] [k] de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Running tests: | |
[ 3315/13696] TestConst#test_redefinition = 10.04 s | |
1) Error: | |
TestConst#test_redefinition: | |
Timeout::Error: execution of assert_no_memory_leak expired | |
/home/kosaki/ruby/git/test/ruby/test_const.rb:64:in `test_redefinition' | |
[ 4015/13696] TestException#test_machine_stackoverflow_by_define_method | |
2) Failure: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% gcc readstat.c -g -Wall; ./a.out | |
cpu[0].iowait : 544257 -> 544256 : 429496729500.000000 0.000000 | |
cpu[2].iowait : 123875 -> 123874 : 429496729500.000000 0.000000 | |
cpu[0].iowait : 544268 -> 544267 : 429496729500.000000 0.000000 | |
cpu[2].iowait : 123882 -> 123881 : 429496729500.000000 0.000000 | |
cpu[0].iowait : 544275 -> 544274 : 429496729500.000000 0.000000 | |
cpu[2].iowait : 123884 -> 123882 : 429496729400.000000 0.000000 | |
cpu[0].iowait : 544281 -> 544279 : 429496729400.000000 0.000000 | |
cpu[2].iowait : 123885 -> 123883 : 429496729400.000000 0.000000 | |
cpu[0].iowait : 544288 -> 544287 : 429496729500.000000 0.000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; flymake | |
(require 'flymake) | |
(require 'flymake-cursor) | |
;; for C | |
(add-hook 'c-mode-hook | |
'(lambda () | |
(flymake-mode t))) | |
;; Use <topdir>/build/Makefile if exist (for ruby) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Xm/XmAll.h> | |
void main(int argc, char *argv[]) | |
{ | |
Widget toplevel, main_w, button; | |
XtAppContext app; | |
XtSetLanguageProc(NULL, NULL, NULL); | |
toplevel = XtVaAppInitialize(&app, "main", NULL, 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start: 0 0 | |
uid: 0 0 | |
uid: 0 0 | |
ret: 1000 1000 | |
uid: 1000 1000 | |
uid: 1000 1000 | |
uid: 1000 1000 | |
uid: 1000 1000 | |
uid: 1000 1000 | |
uid: 1000 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# usage: rpmpatch specfile [--localname name] files... | |
# example: rpmpatch kernel.spec --localname .mytest ../SOURCES/00* | |
require "optparse" | |
localname = nil |
OlderNewer