1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

xray: adaptions for HermitCore

This commit is contained in:
daniel-k 2016-05-18 00:35:35 +02:00
parent 4bc311cf92
commit 0e5a1ca5f9
9 changed files with 16 additions and 9 deletions

View file

@ -2,7 +2,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#include "xray/xray_priv.h"
#include "xray_priv.h"
/* Note name demangling requires linking against libstdc++ */
/* If your platform does not support __cxa_demangle, re-compile XRay with: */

View file

@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xray/xray_priv.h"
#include "xray_priv.h"
#if defined(XRAY)

View file

@ -10,7 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "xray/xray_priv.h"
#include "xray_priv.h"
#if defined(XRAY)

View file

@ -14,7 +14,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "xray/xray_priv.h"
#include "xray_priv.h"
#if defined(XRAY)
@ -199,10 +199,12 @@ void XRaySaveReport(struct XRayTraceCapture* capture,
float percent_cutoff,
int ticks_cutoff) {
FILE* f;
f = fopen(filename, "wt");
f = fopen(filename, "w");
if (NULL != f) {
XRayReport(capture, f, percent_cutoff, ticks_cutoff);
fclose(f);
} else {
printf("Cannot open file '%s'\n", filename);
}
}

View file

@ -14,7 +14,7 @@
#define _GNU_SOURCE
#include <stdlib.h>
#include <string.h>
#include "xray/xray_priv.h"
#include "xray_priv.h"
#if defined(XRAY)

View file

@ -14,7 +14,7 @@
#include <dlfcn.h>
#endif
#include "xray/xray_priv.h"
#include "xray_priv.h"
#define PNACL_STRING_OFFSET (0x10000000)
#if defined(XRAY)

View file

@ -14,7 +14,7 @@
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include "xray/xray_priv.h"
#include "xray_priv.h"
#if defined(XRAY)

View file

@ -10,6 +10,11 @@
#include <stdint.h>
// we don't want that
#ifndef XRAY_DISABLE_BROWSER_INTEGRATION
#define XRAY_DISABLE_BROWSER_INTEGRATION
#endif
#ifndef XRAY_DISABLE_BROWSER_INTEGRATION
#include "ppapi/c/ppb.h"
#endif

View file

@ -13,7 +13,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "xray/xray.h"
#include "xray.h"
#ifdef __cplusplus
extern "C" {