|
169 | 169 | #define NR_CPUS (256) |
170 | 170 | #endif |
171 | 171 | #ifdef LOONGARCH64 |
172 | | -#define NR_CPUS (256) |
| 172 | +#define NR_CPUS (2048) |
173 | 173 | #endif |
174 | 174 |
|
175 | 175 | #define NR_DEVICE_DUMPS (64) |
|
188 | 188 | #define HIST_BLKSIZE (4096) |
189 | 189 |
|
190 | 190 | 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 | + |
191 | 198 | #define STREQ(A, B) (string_exists((char *)A) && string_exists((char *)B) && \ |
192 | 199 | (strcmp((char *)(A), (char *)(B)) == 0)) |
193 | 200 | #define STRNEQ(A, B) (string_exists((char *)A) && string_exists((char *)B) && \ |
@@ -570,6 +577,7 @@ struct program_context { |
570 | 577 | #define MEMSRC_LOCAL (0x80000ULL) |
571 | 578 | #define REDZONE (0x100000ULL) |
572 | 579 | #define VMWARE_VMSS_GUESTDUMP (0x200000ULL) |
| 580 | +#define GET_BUILD_ID (0x400000ULL) |
573 | 581 | char *cleanup; |
574 | 582 | char *namelist_orig; |
575 | 583 | char *namelist_debug_orig; |
@@ -2280,6 +2288,16 @@ struct offset_table { /* stash of commonly-used offsets */ |
2280 | 2288 | long task_struct_thread_context_x28; |
2281 | 2289 | long neigh_table_hash_heads; |
2282 | 2290 | 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; |
2283 | 2301 | }; |
2284 | 2302 |
|
2285 | 2303 | struct size_table { /* stash of commonly-used sizes */ |
@@ -2458,6 +2476,7 @@ struct size_table { /* stash of commonly-used sizes */ |
2458 | 2476 | long vmap_node; |
2459 | 2477 | long cpumask_t; |
2460 | 2478 | long task_struct_exit_state; |
| 2479 | + long bpf_ringbuf_map; |
2461 | 2480 | }; |
2462 | 2481 |
|
2463 | 2482 | struct array_table { |
@@ -5515,6 +5534,7 @@ void cmd_s390dbf(void); |
5515 | 5534 | #endif |
5516 | 5535 | void cmd_map(void); /* kvmdump.c */ |
5517 | 5536 | void cmd_ipcs(void); /* ipcs.c */ |
| 5537 | +void cmd_rustfilt(void); /* symbols.c */ |
5518 | 5538 |
|
5519 | 5539 | /* |
5520 | 5540 | * main.c |
@@ -5607,6 +5627,7 @@ void exec_args_input_file(struct command_table_entry *, struct args_input_file * |
5607 | 5627 | /* |
5608 | 5628 | * tools.c |
5609 | 5629 | */ |
| 5630 | +extern int MAX_MALLOC_BUFS; |
5610 | 5631 | FILE *set_error(char *); |
5611 | 5632 | int __error(int, char *, ...); |
5612 | 5633 | #define error __error /* avoid conflict with gdb error() */ |
@@ -6122,6 +6143,7 @@ extern char *help_wr[]; |
6122 | 6143 | extern char *help_s390dbf[]; |
6123 | 6144 | #endif |
6124 | 6145 | extern char *help_map[]; |
| 6146 | +extern char *help_rustfilt[]; |
6125 | 6147 |
|
6126 | 6148 | /* |
6127 | 6149 | * task.c |
@@ -6232,6 +6254,7 @@ void parse_kernel_version(char *); |
6232 | 6254 | #define SHOW_LOG_CTIME (0x10) |
6233 | 6255 | #define SHOW_LOG_SAFE (0x20) |
6234 | 6256 | #define SHOW_LOG_CALLER (0x40) |
| 6257 | +#define SHOW_LOG_RUST (0x80) |
6235 | 6258 | void set_cpu(int); |
6236 | 6259 | void clear_machdep_cache(void); |
6237 | 6260 | struct stack_hook *gather_text_list(struct bt_info *); |
|
0 commit comments