| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef ART_LIBARTPALETTE_INCLUDE_PALETTE_PALETTE_METHOD_LIST_H_ |
| 18 |
#define ART_LIBARTPALETTE_INCLUDE_PALETTE_PALETTE_METHOD_LIST_H_ |
| 19 |
|
| 20 |
#include <stdbool.h> |
| 21 |
#include <stddef.h> |
| 22 |
#include <stdint.h> |
| 23 |
|
| 24 |
#include "jni.h" |
| 25 |
|
| 26 |
#define PALETTE_METHOD_LIST(M) \ |
| 27 |
\ |
| 28 |
M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \ |
| 29 |
M(PaletteSchedGetPriority, int32_t tid, int32_t* java_priority) \ |
| 30 |
M(PaletteWriteCrashThreadStacks, const char* stacks, size_t stacks_len) \ |
| 31 |
M(PaletteTraceEnabled, bool* enabled) \ |
| 32 |
M(PaletteTraceBegin, const char* name) \ |
| 33 |
M(PaletteTraceEnd) \ |
| 34 |
M(PaletteTraceIntegerValue, const char* name, int32_t value) \ |
| 35 |
M(PaletteAshmemCreateRegion, const char* name, size_t size, int* fd) \ |
| 36 |
M(PaletteAshmemSetProtRegion, int, int) \ |
| 37 |
\ |
| 38 |
\ |
| 39 |
\ |
| 40 |
\ |
| 41 |
M(PaletteCreateOdrefreshStagingDirectory, const char** staging_dir) \ |
| 42 |
M(PaletteShouldReportDex2oatCompilation, bool*) \ |
| 43 |
M(PaletteNotifyStartDex2oatCompilation, int source_fd, int art_fd, int oat_fd, int vdex_fd) \ |
| 44 |
M(PaletteNotifyEndDex2oatCompilation, int source_fd, int art_fd, int oat_fd, int vdex_fd) \ |
| 45 |
M(PaletteNotifyDexFileLoaded, const char* path) \ |
| 46 |
M(PaletteNotifyOatFileLoaded, const char* path) \ |
| 47 |
M(PaletteShouldReportJniInvocations, bool*) \ |
| 48 |
M(PaletteNotifyBeginJniInvocation, JNIEnv* env) \ |
| 49 |
M(PaletteNotifyEndJniInvocation, JNIEnv* env) \ |
| 50 |
\ |
| 51 |
\ |
| 52 |
M(PaletteReportLockContention, \ |
| 53 |
JNIEnv* env, \ |
| 54 |
int32_t wait_ms, \ |
| 55 |
const char* filename, \ |
| 56 |
int32_t line_number, \ |
| 57 |
const char* method_name, \ |
| 58 |
const char* owner_filename, \ |
| 59 |
int32_t owner_line_number, \ |
| 60 |
const char* owner_method_name, \ |
| 61 |
const char* proc_name, \ |
| 62 |
const char* thread_name) \ |
| 63 |
\ |
| 64 |
\ |
| 65 |
\ |
| 66 |
\ |
| 67 |
\ |
| 68 |
\ |
| 69 |
\ |
| 70 |
\ |
| 71 |
\ |
| 72 |
\ |
| 73 |
\ |
| 74 |
\ |
| 75 |
\ |
| 76 |
\ |
| 77 |
\ |
| 78 |
M(PaletteSetTaskProfiles, int32_t tid, const char* const profiles[], size_t profiles_len) |
| 79 |
|
| 80 |
#endif |