mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 14:06:51 +07:00
0353631aa7
Instead of defining __unused or redefining __maybe_unused. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-4eleto5pih31jw1q4dypm9pf@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
35 lines
699 B
C
35 lines
699 B
C
#ifndef __JVMTI_AGENT_H__
|
|
#define __JVMTI_AGENT_H__
|
|
|
|
#include <sys/types.h>
|
|
#include <stdint.h>
|
|
#include <jvmti.h>
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
unsigned long pc;
|
|
int line_number;
|
|
int discrim; /* discriminator -- 0 for now */
|
|
} jvmti_line_info_t;
|
|
|
|
void *jvmti_open(void);
|
|
int jvmti_close(void *agent);
|
|
int jvmti_write_code(void *agent, char const *symbol_name,
|
|
uint64_t vma, void const *code,
|
|
const unsigned int code_size);
|
|
|
|
int jvmti_write_debug_info(void *agent,
|
|
uint64_t code,
|
|
const char *file,
|
|
jvmti_line_info_t *li,
|
|
int nr_lines);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
|
|
#endif
|
|
#endif /* __JVMTI_H__ */
|