mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-01-07 13:07:56 +08:00
27 lines
652 B
C
27 lines
652 B
C
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
|
|
#ifndef __TRACE_HELPERS_H
|
|
#define __TRACE_HELPERS_H
|
|
|
|
#define NSEC_PER_SEC 1000000000ULL
|
|
|
|
struct ksym {
|
|
const char *name;
|
|
unsigned long addr;
|
|
};
|
|
|
|
struct ksyms;
|
|
|
|
struct ksyms *ksyms__load(void);
|
|
void ksyms__free(struct ksyms *ksyms);
|
|
const struct ksym *ksyms__map_addr(const struct ksyms *ksyms,
|
|
unsigned long addr);
|
|
const struct ksym *ksyms__get_symbol(const struct ksyms *ksyms,
|
|
const char *name);
|
|
|
|
void print_log2_hist(unsigned int *vals, int vals_size, char *val_type);
|
|
|
|
unsigned long long get_ktime_ns(void);
|
|
int bump_memlock_rlimit(void);
|
|
|
|
#endif /* __TRACE_HELPERS_H */
|