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:
parent
4bc311cf92
commit
0e5a1ca5f9
9 changed files with 16 additions and 9 deletions
|
@ -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: */
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "xray/xray.h"
|
||||
#include "xray.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Loading…
Add table
Reference in a new issue