php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ir_perf.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <limits.h>
#include "ir.h"
#include "ir_elf.h"

Go to the source code of this file.

Data Structures

struct  ir_perf_jitdump_header
 
struct  _ir_perf_jitdump_record
 
struct  _ir_perf_jitdump_load_record
 

Macros

#define IR_PERF_JITDUMP_HEADER_MAGIC   0x4A695444
 
#define IR_PERF_JITDUMP_HEADER_VERSION   1
 
#define IR_PERF_JITDUMP_RECORD_LOAD   0
 
#define IR_PERF_JITDUMP_RECORD_MOVE   1
 
#define IR_PERF_JITDUMP_RECORD_DEBUG_INFO   2
 
#define IR_PERF_JITDUMP_RECORD_CLOSE   3
 
#define IR_PERF_JITDUMP_UNWINDING_UNFO   4
 
#define ALIGN8(size)
 
#define PADDING8(size)
 

Typedefs

typedef struct ir_perf_jitdump_header ir_perf_jitdump_header
 
typedef struct _ir_perf_jitdump_record ir_perf_jitdump_record
 
typedef struct _ir_perf_jitdump_load_record ir_perf_jitdump_load_record
 

Functions

int ir_perf_jitdump_open (void)
 
int ir_perf_jitdump_close (void)
 
int ir_perf_jitdump_register (const char *name, const void *start, size_t size)
 
void ir_perf_map_register (const char *name, const void *start, size_t size)
 

Macro Definition Documentation

◆ ALIGN8

#define ALIGN8 ( size)
Value:
(((size) + 7) & ~7)
new_type size
Definition ffi.c:4365

Definition at line 58 of file ir_perf.c.

◆ IR_PERF_JITDUMP_HEADER_MAGIC

#define IR_PERF_JITDUMP_HEADER_MAGIC   0x4A695444

Definition at line 49 of file ir_perf.c.

◆ IR_PERF_JITDUMP_HEADER_VERSION

#define IR_PERF_JITDUMP_HEADER_VERSION   1

Definition at line 50 of file ir_perf.c.

◆ IR_PERF_JITDUMP_RECORD_CLOSE

#define IR_PERF_JITDUMP_RECORD_CLOSE   3

Definition at line 55 of file ir_perf.c.

◆ IR_PERF_JITDUMP_RECORD_DEBUG_INFO

#define IR_PERF_JITDUMP_RECORD_DEBUG_INFO   2

Definition at line 54 of file ir_perf.c.

◆ IR_PERF_JITDUMP_RECORD_LOAD

#define IR_PERF_JITDUMP_RECORD_LOAD   0

Definition at line 52 of file ir_perf.c.

◆ IR_PERF_JITDUMP_RECORD_MOVE

#define IR_PERF_JITDUMP_RECORD_MOVE   1

Definition at line 53 of file ir_perf.c.

◆ IR_PERF_JITDUMP_UNWINDING_UNFO

#define IR_PERF_JITDUMP_UNWINDING_UNFO   4

Definition at line 56 of file ir_perf.c.

◆ PADDING8

#define PADDING8 ( size)
Value:
#define ALIGN8(size)
Definition ir_perf.c:58

Definition at line 59 of file ir_perf.c.

Typedef Documentation

◆ ir_perf_jitdump_header

typedef struct ir_perf_jitdump_header ir_perf_jitdump_header

◆ ir_perf_jitdump_load_record

◆ ir_perf_jitdump_record

Function Documentation

◆ ir_perf_jitdump_close()

int ir_perf_jitdump_close ( void )

Definition at line 183 of file ir_perf.c.

◆ ir_perf_jitdump_open()

int ir_perf_jitdump_open ( void )

Definition at line 101 of file ir_perf.c.

◆ ir_perf_jitdump_register()

int ir_perf_jitdump_register ( const char * name,
const void * start,
size_t size )

Definition at line 205 of file ir_perf.c.

◆ ir_perf_map_register()

void ir_perf_map_register ( const char * name,
const void * start,
size_t size )

Definition at line 252 of file ir_perf.c.