28#define valid_ptr(p) ((p) && 0 == ((p) & (sizeof(long) - 1)))
37static int fpm_php_trace_dump(
struct fpm_child_s *child, FILE *slowlog)
40 pid_t pid = child->
pid;
63 fprintf(slowlog,
"script_filename = %s\n",
buf);
91 if (function_name == 0) {
100 memcpy(
buf,
"[INCLUDE_OR_EVAL]",
sizeof(
"[INCLUDE_OR_EVAL]"));
161 uint32_t *lu = (uint32_t *) &l;
179 fprintf(slowlog,
" %s:%u\n", *
buf ?
buf :
"unknown", lineno);
181 if (0 == --callers_limit) {
208 if (0 > fpm_php_trace_dump(child, slowlog)) {
209 fprintf(slowlog,
"+++ dump failed\n");
fprintf($stream, string $format, mixed ... $values)
prev(array|object &$array)
gettimeofday(bool $as_float=false)
fopen(string $filename, string $mode, bool $use_include_path=false, $context=null)
zend_ffi_ctype_name_buf buf
void fpm_php_trace(struct fpm_child_s *)
int fpm_pctl_kill(pid_t pid, int how)
void fpm_scoreboard_update(int idle, int active, int lq, int lq_len, int requests, int max_children_reached, int slow_rq, size_t memory_peak, int action, struct fpm_scoreboard_s *scoreboard)
#define FPM_SCOREBOARD_ACTION_INC
int fpm_trace_get_strz(char *buf, size_t sz, long addr)
int fpm_trace_close(pid_t pid)
int fpm_trace_get_long(long addr, long *data)
int fpm_trace_ready(pid_t pid)
#define offsetof(STRUCTURE, FIELD)
void(* tracer)(struct fpm_child_s *)
struct fpm_worker_pool_s * wp
int request_slowlog_trace_depth
struct fpm_worker_pool_config_s * config
struct fpm_scoreboard_s * scoreboard
#define ZEND_USER_CODE(type)
#define ZEND_CALL_TOP_CODE
#define ZEND_CALL_NESTED_CODE
struct _zend_op_array zend_op_array
#define ZEND_CALL_KIND_EX(call_info)
union _zend_function zend_function
struct _zend_string zend_string
#define ZEND_UNREACHABLE()
struct _zend_execute_data zend_execute_data
function(EX_VAR(opline->result.var))
size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len)