Skip to content

Commit 6c0746d

Browse files
committed
sync crash-android 9.0.1 defs.h
Signed-off-by: Penguin. <chenguanyou9338@gmail.com>
1 parent ea67202 commit 6c0746d

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

defs.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
#define NR_CPUS (256)
170170
#endif
171171
#ifdef LOONGARCH64
172-
#define NR_CPUS (256)
172+
#define NR_CPUS (2048)
173173
#endif
174174

175175
#define NR_DEVICE_DUMPS (64)
@@ -188,6 +188,13 @@
188188
#define HIST_BLKSIZE (4096)
189189

190190
static inline int string_exists(char *s) { return (s ? TRUE : FALSE); }
191+
192+
static inline int max(int a, int b) {
193+
if (a > b)
194+
return a;
195+
return b;
196+
}
197+
191198
#define STREQ(A, B) (string_exists((char *)A) && string_exists((char *)B) && \
192199
(strcmp((char *)(A), (char *)(B)) == 0))
193200
#define STRNEQ(A, B) (string_exists((char *)A) && string_exists((char *)B) && \
@@ -570,6 +577,7 @@ struct program_context {
570577
#define MEMSRC_LOCAL (0x80000ULL)
571578
#define REDZONE (0x100000ULL)
572579
#define VMWARE_VMSS_GUESTDUMP (0x200000ULL)
580+
#define GET_BUILD_ID (0x400000ULL)
573581
char *cleanup;
574582
char *namelist_orig;
575583
char *namelist_debug_orig;
@@ -2280,6 +2288,16 @@ struct offset_table { /* stash of commonly-used offsets */
22802288
long task_struct_thread_context_x28;
22812289
long neigh_table_hash_heads;
22822290
long neighbour_hash;
2291+
long request_queue_tag_set;
2292+
long blk_mq_tag_set_flags;
2293+
long blk_mq_tag_set_shared_tags;
2294+
long vfsmount_mnt_flags;
2295+
long proc_mounts_cursor;
2296+
long bpf_ringbuf_map_map;
2297+
long bpf_ringbuf_map_rb;
2298+
long bpf_ringbuf_consumer_pos;
2299+
long bpf_ringbuf_nr_pages;
2300+
long hrtimer_clock_base_index;
22832301
};
22842302

22852303
struct size_table { /* stash of commonly-used sizes */
@@ -2458,6 +2476,7 @@ struct size_table { /* stash of commonly-used sizes */
24582476
long vmap_node;
24592477
long cpumask_t;
24602478
long task_struct_exit_state;
2479+
long bpf_ringbuf_map;
24612480
};
24622481

24632482
struct array_table {
@@ -5515,6 +5534,7 @@ void cmd_s390dbf(void);
55155534
#endif
55165535
void cmd_map(void); /* kvmdump.c */
55175536
void cmd_ipcs(void); /* ipcs.c */
5537+
void cmd_rustfilt(void); /* symbols.c */
55185538

55195539
/*
55205540
* main.c
@@ -5607,6 +5627,7 @@ void exec_args_input_file(struct command_table_entry *, struct args_input_file *
56075627
/*
56085628
* tools.c
56095629
*/
5630+
extern int MAX_MALLOC_BUFS;
56105631
FILE *set_error(char *);
56115632
int __error(int, char *, ...);
56125633
#define error __error /* avoid conflict with gdb error() */
@@ -6122,6 +6143,7 @@ extern char *help_wr[];
61226143
extern char *help_s390dbf[];
61236144
#endif
61246145
extern char *help_map[];
6146+
extern char *help_rustfilt[];
61256147

61266148
/*
61276149
* task.c
@@ -6232,6 +6254,7 @@ void parse_kernel_version(char *);
62326254
#define SHOW_LOG_CTIME (0x10)
62336255
#define SHOW_LOG_SAFE (0x20)
62346256
#define SHOW_LOG_CALLER (0x40)
6257+
#define SHOW_LOG_RUST (0x80)
62356258
void set_cpu(int);
62366259
void clear_machdep_cache(void);
62376260
struct stack_hook *gather_text_list(struct bt_info *);

0 commit comments

Comments
 (0)