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
macros = [] | |
includes = [] | |
if test_1: | |
macros.append('test1') | |
includes.append('/usr/include') | |
if test_2: | |
macros.append('test2') | |
includes.append('/opt/local/include') |
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 <stddef.h> | |
#include <stdio.h> | |
typedef enum enum_t {tag} type; | |
struct TEST { char c; type mem; }; | |
int main() { | |
printf("%d\n", (int)offsetof(struct TEST, mem)); | |
printf("%d\n", (int)sizeof(type)); | |
return 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
DEBUG 20:00:23,206 error reading from socket; closing | |
java.io.IOException: invalid protocol header | |
at org.apache.cassandra.net.MessagingService.validateMagic(MessagingService.java:393) | |
at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:59) |
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
#!/bin/sh | |
set -e | |
git archive --format tar --prefix=pyzmq-0.1.20100828gitebdd230/ HEAD | xz -z --force - > pyzmq-0.1.20100828gitebdd230.tar.xz | |
mv pyzmq-0.1.20100828gitebdd230.tar.xz ~/rpmbuild/SOURCES | |
rpmbuild -bb ~/rpmbuild/SPECS/python-zmq-0.1.20100828gitebdd230-f13.spec |
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
function task_file_handle_d_path:string (task:long, fd:long) %{ /* pure */ | |
struct task_struct *p = (struct task_struct *)((long)THIS->task); | |
struct files_struct *files; | |
char *page = NULL; | |
rcu_read_lock(); | |
files = kread(&p->files); | |
page = (char *)__get_free_page(GFP_KERNEL); | |
/* TODO: handle !page */ |
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
BUG: sleeping function called from invalid context at mm/page_alloc.c:1483 | |
in_atomic(): 0, irqs_disabled(): 1, pid: 13873, name: rit | |
Pid: 13873, comm: rit Not tainted 2.6.29.4-167.fc11.px3.x86_64 #1 | |
Call Trace: | |
<#DB> [<ffffffff8103ff0f>] __might_sleep+0x10b/0x110 | |
[<ffffffff810a4db6>] __alloc_pages_internal+0x73/0x429 | |
[<ffffffffa018b0de>] ? _stp_vsnprintf+0xb77/0xbcd [stap_f457289531692a3fd7911c40d4fa347b_11578] | |
[<ffffffff810c7355>] alloc_pages_current+0xb7/0xc0 | |
[<ffffffff810a3789>] __get_free_pages+0x13/0x4e | |
[<ffffffffa03553ca>] function_task_file_handle_d_path+0xc5/0x145 [stap_8c409e924a1b352a727a1c0ed728845c_8051] |
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
function __task_file_handle_filp:long(task:long, fd:long) %{ /* pure */ | |
struct task_struct *p = (struct task_struct *)((long)THIS->task); | |
struct files_struct *files; | |
struct file *filp; | |
rcu_read_lock(); | |
if ((files = kread(&p->files))) { | |
if ((filp = fcheck_files(files, THIS->fd))) { | |
THIS->__retvalue = (long)filp; | |
} |
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
function __task_file_handle_filp:long(task:long, fd:long) %{ /* pure */ | |
struct task_struct *p = (struct task_struct *)((long)THIS->task); | |
struct files_struct *files; | |
struct file *filp; | |
rcu_read_lock(); | |
if ((files = kread(&p->files))) { | |
if ((filp = fcheck_files(files, THIS->fd))) { | |
THIS->__retvalue = (long)filp; | |
} |
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
function __task_file_handle_filp:long(task:long, fd:long) %{ /* pure */ | |
struct task_struct *p = (struct task_struct *)((long)THIS->task); | |
struct files_struct *files; | |
struct file *filp; | |
rcu_read_lock(); | |
if ((files = kread(&p->files))) { | |
if ((filp = fcheck_files(files, THIS->fd))) { | |
THIS->__retvalue = (long)filp; | |
} |
OlderNewer