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 <stdlib.h> | |
#include <signal.h> | |
#include <execinfo.h> | |
volatile static int *x = NULL; | |
volatile static int action = 0; | |
void bt() | |
{ |
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 -x | |
DBG=/sys/kernel/debug/tracing | |
do_echo() { | |
echo $1 | sudo tee $DBG/$2 | |
} | |
do_echo function current_tracer | |
do_echo perf_event_overflow set_ftrace_filter | |
do_echo 1 tracing_on | |
do_echo 1 options/func_stack_trace |
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
/* | |
* mmapbench.c | |
* | |
* Created on: Aug 7, 2015 | |
* Author: francis | |
*/ | |
#include <stdio.h> | |
#include <stdlib.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
int do_syscall_read_long(void *args) | |
{ | |
FILE *f = args; | |
int i; | |
long val; | |
for (i = 0; i < (PAGE_SIZE / sizeof(val)); i++) { | |
val = 0; | |
int ret = read(f->_fileno, &val, sizeof(val)); |
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/env python3 | |
import os | |
import sys | |
import babeltrace.reader | |
import babeltrace.common | |
import pprint | |
import shutil | |
from os.path import join, dirname, abspath |
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
#define __kernel | |
#define __global | |
void saxpy_cpu(float *y, | |
float *x, | |
float a, | |
int n) | |
{ | |
for (int i = 0; i < n; i++) { | |
y[i] = a * x[i] + y[i]; |
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
console.log("loading...") | |
var OSRM = require('osrm'); | |
var osrm = new OSRM("geofabrik/canada-latest.osrm"); | |
console.log("begin") | |
var coord = []; | |
coord.push([45.5370569, -73.5708777]); | |
coord.push([46.0243857, -73.439845]); |
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
{ | |
"linux": { | |
"sysname": "Linux", | |
"nodename": "berta", | |
"release": "4.2.0-18-generic", | |
"version": "#22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015", | |
"machine": "x86_64", | |
"domainname": "(none)" | |
}, | |
"lttng": { |
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
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 | |
!SESSION 2016-01-06 12:23:37.998 ----------------------------------------------- | |
eclipse.buildId=unknown | |
java.version=1.8.0_66-internal | |
java.vendor=Oracle Corporation | |
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA | |
Framework arguments: -version 3 -port 38628 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -test org.eclipse.cdt.core.model.tests.BinaryTests:testFoo -application org.eclipse.pde.junit.runtime.uitestapplication -product org.eclipse.sdk.ide -testpluginname org.eclipse.cdt.core.tests | |
Command-line arguments: -os linux -ws gtk -arch x86_64 -consoleLog -consolelog -version 3 -port 38628 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -test org.eclipse.cdt.core.model.tests.BinaryTests:testFoo -application org.eclipse.pde.junit.runtime.uitestapplicat |
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
@Test | |
public void readBundleResource() throws IOException { | |
Bundle bundle = CTestPlugin.getDefault().getBundle(); | |
URL entry = bundle.getEntry("resources/elf/build.log"); | |
URL resource = bundle.getResource("resources/elf/build.log"); | |
System.out.println(entry); | |
System.out.println(resource); | |
try (InputStream s1 = entry.openStream()) { |
OlderNewer