Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 22565
2
votes
((no_instrument_function)); void __cyg_profile_func_enter (void *func, void *caller) { static FILE* trace = NULL; Dl_info info; if (trace == NULL) { trace = fdopen(TRACE_FD, "w"); if (trace … == NULL) abort(); setbuf(trace, NULL); } if (dladdr(func, &info)) fprintf (trace, "%p [%s] %s\n", func, info.dli_fname ? info.dli_fname …
answered Aug 18 '17 by Stéphane Chazelas
5
votes
Using gcov: $ gcc -O0 --coverage square.c $ ./a.out $ gcov -i square.c $ awk -F '[,:]' '$1 == "function" && $3 > 0 {print $3, $4}' square.c.gcov 1 square 1 main (where the number is the number of t …
answered Aug 17 '17 by Stéphane Chazelas
17
votes
On Linux, assuming you want to know what is writing to the same resource as your shell's stdout is connected to, you could do: strace -fe write $(lsof -t "/proc/$$/fd/1" | sed 's/^/-p/') That would …
answered Jul 2 '14 by Stéphane Chazelas