首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

crash源码github可以下载

操作系统 1.45MB 17 需要积分: 1
立即下载

资源介绍:

备份一下crash工具方便取
/* memory.c - core analysis suite * * Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. * Copyright (C) 2002-2019 David Anderson * Copyright (C) 2002-2019 Red Hat, Inc. All rights reserved. * Copyright (C) 2002 Silicon Graphics, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "defs.h" #include #include #include #include #include "maple_tree.h" struct meminfo { /* general purpose memory information structure */ ulong cache; /* used by the various memory searching/dumping */ ulong slab; /* routines. Only one of these is used per cmd */ ulong c_flags; /* so stuff whatever's helpful in here... */ ulong c_offset; ulong c_num; ulong s_mem; void *s_freep; ulong *s_index; ulong s_inuse; ulong cpucached_cache; ulong cpucached_slab; ulong inuse; ulong order; ulong slabsize; ulong num_slabs; ulong objects; ulonglong spec_addr; ulong flags; ulong size; ulong objsize; int memtype; int free; int slab_offset; char *reqname; char *curname; ulong *spec_cpumask; ulong *addrlist; int *kmem_bufctl; ulong *cpudata[NR_CPUS]; ulong *shared_array_cache; int current_cache_index; ulong found; ulong retval; struct struct_member_data *page_member_cache; ulong nr_members; char *ignore; int errors; int calls; int cpu; int cache_count; ulong get_shared; ulong get_totalram; ulong get_buffers; ulong get_slabs; char *slab_buf; char *cache_buf; ulong *cache_list; struct vmlist { ulong addr; ulong size; } *vmlist; ulong container; int *freelist; int freelist_index_size; ulong random; ulong list_offset; }; /* * Search modes */ #define SEARCH_ULONG (0) #define SEARCH_UINT (1) #define SEARCH_USHORT (2) #define SEARCH_CHARS (3) #define SEARCH_DEFAULT (SEARCH_ULONG) /* search mode information */ struct searchinfo { int mode; int vcnt; int val; int context; int memtype; int do_task_header; int tasks_found; struct task_context *task_context; ulong vaddr_start; ulong vaddr_end; ulonglong paddr_start; ulonglong paddr_end; union { /* default ulong search */ struct { ulong value[MAXARGS]; char *opt_string[MAXARGS]; ulong mask; } s_ulong; /* uint search */ struct { uint value[MAXARGS]; char *opt_string[MAXARGS]; uint mask; } s_uint; /* ushort search */ struct { ushort value[MAXARGS]; char *opt_string[MAXARGS]; ushort mask; } s_ushort; /* string (chars) search */ struct { char *value[MAXARGS]; int len[MAXARGS]; int started_flag; /* string search needs history */ } s_chars; } s_parms; char buf[BUFSIZE]; }; struct handle_each_vm_area_args { ulong task; ulong flag; ulong vaddr; struct reference *ref; char *vma_header; char *buf1; char *buf2; char *buf3; char *buf4; char *buf5; ulong vma; char **vma_buf; struct task_mem_usage *tm; int *found; int *single_vma_found; unsigned int radix; struct task_context *tc; ulong *single_vma; }; static char *memtype_string(int, int); static char *error_handle_string(ulong); static void collect_page_member_data(char *, struct meminfo *); struct integer_data { ulong value; ulong bitfield_value; struct struct_member_data *pmd; }; static int get_bitfield_data(struct integer_data *); static int show_page_member_data(char *, ulong, struct meminfo *, char *); static void dump_mem_map(struct meminfo *); static void dump_mem_map_SPARSEMEM(struct meminfo *); static void fill_mem_map_cache(ulong, ulong, char *); static void page_flags_init(void); static int page_flags_init_from_pageflag_names(void); static int page_flags_init_from_pageflags_enum(void); static int translate_page_flags(char *, ulong); static void dump_free_pages(struct meminfo *); static int dump_zone_page_usage(void); static void dump_multidimensional_free_pages(struct meminfo *); static void dump_free_pages_zones_v1(struct meminfo *); static void dump_free_pages_zones_v2(struct meminfo *); struct free_page_callback_data; static int dump_zone_free_area(ulong, int, ulong, struct free_page_callback_data *); static void dump_page_hash_table(struct meminfo *); static void kmem_search(struct meminfo *); static void kmem_cache_init(void); static void kmem_cache_init_slub(void); static ulong max_cpudata_limit(ulong, ulong *); static int kmem_cache_downsize(void); static int ignore_cache(struct meminfo *, char *); static char *is_kmem_cache_addr(ulong, char *); static char *is_kmem_cache_addr_common(ulong, char *); static void kmem_cache_list(struct meminfo *); static void dump_kmem_cache(struct meminfo *); static void dump_kmem_cache_percpu_v1(struct meminfo *); static void dump_kmem_cache_percpu_v2(struct meminfo *); static void dump_kmem_cache_slub(struct meminfo *); static void kmem_cache_list_common(struct meminfo *); static ulong get_cpu_slab_ptr(struct meminfo *, int, ulong *); static unsigned int oo_order(ulong); static unsigned int oo_objects(ulong); static char *vaddr_to_kmem_cache(ulong, char *, int); static char *is_slab_overload_page(ulong, ulong *, char *); static ulong vaddr_to_slab(ulong); static void do_slab_chain(int, struct meminfo *); static void do_slab_chain_percpu_v1(long, struct meminfo *); static void do_slab_chain_percpu_v2(long, struct meminfo *); static void do_slab_chain_percpu_v2_nodes(long, struct meminfo *); static void do_slab_chain_slab_overload_page(long, struct meminfo *); static int slab_freelist_index_size(void); static int do_slab_slub(struct meminfo *, int); static void do_kmem_cache_slub(struct meminfo *); static void save_slab_data(struct meminfo *); static int slab_data_saved(struct meminfo *); static void dump_saved_slab_data(void); static void dump_slab(struct meminfo *); static void dump_slab_percpu_v1(struct meminfo *); static void dump_slab_percpu_v2(struct meminfo *); static void dump_slab_overload_page(struct meminfo *); static int verify_slab_v1(struct meminfo *, ulong, int); static int verify_slab_v2(struct meminfo *, ulong, int); static int verify_slab_overload_page(struct meminfo *, ulong, int); static void gather_slab_free_list(struct meminfo *); static void gather_slab_free_list_percpu(struct meminfo *); static void gather_slab_free_list_slab_overload_page(struct meminfo *); static void gather_cpudata_list_v1(struct meminfo *); static void gather_cpudata_list_v2(struct meminfo *); static void gather_cpudata_list_v2_nodes(struct meminfo *, int); static int check_cpudata_list(struct meminfo *, ulong); static int check_shared_list(struct meminfo *, ulong); static void gather_slab_cached_count(struct meminfo *); static void dump_slab_objects(struct meminfo *); static void dump_slab_objects_percpu(struct meminfo *); static void dump_vmlist(struct meminfo *); static void dump_vmap_area(struct meminfo *); static int dump_page_lists(struct meminfo *); static void dump_kmeminfo(void); static int page_to_phys(ulong, physaddr_t *); static void display_memory(ulonglong, long, ulong, int, void *); static char *show_opt_string(struct searchinfo *); static void display_with_pre_and_post(void *, ulonglong, struct searchinfo *); static ulong search_ulong(ulong *, ulong, int, struct searchinfo *); static ulong search_uint(ulong *, ulong, int, struct searchinfo *); static ulong search_ushort(ulong *, ulong, int, struct searchinfo *); static ulong search_chars(ulong *, ulong, int, struct searchinfo *); static ulonglong search_ulong_p(ulong *, ulonglong, int, struct searchinfo *); stat

资源文件列表:

crash-8.0.5.zip 大约有119个文件
  1. crash-8.0.5/
  2. crash-8.0.5/.gitignore 304B
  3. crash-8.0.5/.rh_rpm_package 6B
  4. crash-8.0.5/COPYING3 34.32KB
  5. crash-8.0.5/Makefile 25.49KB
  6. crash-8.0.5/README 15.97KB
  7. crash-8.0.5/alpha.c 74.68KB
  8. crash-8.0.5/arm.c 47.05KB
  9. crash-8.0.5/arm64.c 142.08KB
  10. crash-8.0.5/bpf.c 39.17KB
  11. crash-8.0.5/cmdline.c 61.78KB
  12. crash-8.0.5/configure.c 51.99KB
  13. crash-8.0.5/crash.8 22.84KB
  14. crash-8.0.5/crash_target.c 4.09KB
  15. crash-8.0.5/defs.h 241.96KB
  16. crash-8.0.5/dev.c 151.71KB
  17. crash-8.0.5/diskdump.c 89.74KB
  18. crash-8.0.5/diskdump.h 3.95KB
  19. crash-8.0.5/extensions.c 14.42KB
  20. crash-8.0.5/extensions/
  21. crash-8.0.5/extensions/Makefile 1.98KB
  22. crash-8.0.5/extensions/dminfo.c 41.56KB
  23. crash-8.0.5/extensions/echo.c 3.46KB
  24. crash-8.0.5/extensions/eppic.c 139B
  25. crash-8.0.5/extensions/eppic.mk 2.16KB
  26. crash-8.0.5/extensions/snap.c 20.04KB
  27. crash-8.0.5/extensions/snap.mk 1.37KB
  28. crash-8.0.5/filesys.c 115.15KB
  29. crash-8.0.5/gdb-10.2.patch 541.31KB
  30. crash-8.0.5/gdb_interface.c 28.59KB
  31. crash-8.0.5/global_data.c 5.66KB
  32. crash-8.0.5/help.c 427.17KB
  33. crash-8.0.5/ia64.c 125.44KB
  34. crash-8.0.5/ibm_common.h 3.67KB
  35. crash-8.0.5/ipcs.c 31.86KB
  36. crash-8.0.5/kaslr_helper.c 19.06KB
  37. crash-8.0.5/kernel.c 328.02KB
  38. crash-8.0.5/kvmdump.c 30.74KB
  39. crash-8.0.5/kvmdump.h 2.48KB
  40. crash-8.0.5/lkcd_common.c 36.29KB
  41. crash-8.0.5/lkcd_dump_v5.h 9.05KB
  42. crash-8.0.5/lkcd_dump_v7.h 13.84KB
  43. crash-8.0.5/lkcd_dump_v8.h 16.48KB
  44. crash-8.0.5/lkcd_fix_mem.c 2.41KB
  45. crash-8.0.5/lkcd_fix_mem.h 10.99KB
  46. crash-8.0.5/lkcd_v1.c 8.56KB
  47. crash-8.0.5/lkcd_v2_v3.c 15.22KB
  48. crash-8.0.5/lkcd_v5.c 12.5KB
  49. crash-8.0.5/lkcd_v7.c 14.59KB
  50. crash-8.0.5/lkcd_v8.c 19.29KB
  51. crash-8.0.5/lkcd_vmdump_v1.h 5.06KB
  52. crash-8.0.5/lkcd_vmdump_v2_v3.h 7.49KB
  53. crash-8.0.5/lkcd_x86_trace.c 137.8KB
  54. crash-8.0.5/lkcd_x86_trace.h 19.96KB
  55. crash-8.0.5/loongarch64.c 37.1KB
  56. crash-8.0.5/main.c 61.42KB
  57. crash-8.0.5/makedumpfile.c 9.05KB
  58. crash-8.0.5/makedumpfile.h 1.61KB
  59. crash-8.0.5/maple_tree.c 17.39KB
  60. crash-8.0.5/maple_tree.h 1.59KB
  61. crash-8.0.5/memory.c 551.92KB
  62. crash-8.0.5/memory_driver/
  63. crash-8.0.5/memory_driver/Makefile 806B
  64. crash-8.0.5/memory_driver/README 743B
  65. crash-8.0.5/memory_driver/crash.c 7.71KB
  66. crash-8.0.5/mips.c 32.21KB
  67. crash-8.0.5/mips64.c 37.06KB
  68. crash-8.0.5/net.c 49.64KB
  69. crash-8.0.5/netdump.c 147.63KB
  70. crash-8.0.5/netdump.h 3.69KB
  71. crash-8.0.5/ppc.c 56.31KB
  72. crash-8.0.5/ppc64.c 107.56KB
  73. crash-8.0.5/printk.c 9KB
  74. crash-8.0.5/qemu-load.c 25.81KB
  75. crash-8.0.5/qemu-load.h 5KB
  76. crash-8.0.5/qemu.c 7.97KB
  77. crash-8.0.5/ramdump.c 8.98KB
  78. crash-8.0.5/remote.c 104.06KB
  79. crash-8.0.5/riscv64.c 52.21KB
  80. crash-8.0.5/rse.h 2.39KB
  81. crash-8.0.5/s390.c 32.36KB
  82. crash-8.0.5/s390_dump.c 2.17KB
  83. crash-8.0.5/s390dbf.c 35.25KB
  84. crash-8.0.5/s390x.c 59.98KB
  85. crash-8.0.5/sadump.c 44.33KB
  86. crash-8.0.5/sadump.h 6.45KB
  87. crash-8.0.5/sbitmap.c 18.57KB
  88. crash-8.0.5/sparc64.c 31.01KB
  89. crash-8.0.5/symbols.c 421.45KB
  90. crash-8.0.5/task.c 291.47KB
  91. crash-8.0.5/test.c 2.48KB
  92. crash-8.0.5/tools.c 173.22KB
  93. crash-8.0.5/unwind.c 82.09KB
  94. crash-8.0.5/unwind.h 21.54KB
  95. crash-8.0.5/unwind_arm.c 19.21KB
  96. crash-8.0.5/unwind_decoder.c 12.86KB
  97. crash-8.0.5/unwind_i.h 6.49KB
  98. crash-8.0.5/unwind_x86.h 509B
  99. crash-8.0.5/unwind_x86_32_64.c 32.9KB
  100. crash-8.0.5/unwind_x86_64.h 3.16KB
  101. crash-8.0.5/va_server.c 10.25KB
  102. crash-8.0.5/va_server.h 2.21KB
  103. crash-8.0.5/va_server_v1.c 9.49KB
  104. crash-8.0.5/vas_crash.h 4.04KB
  105. crash-8.0.5/vmcore.h 1.01KB
  106. crash-8.0.5/vmware_guestdump.c 8.55KB
  107. crash-8.0.5/vmware_vmss.c 26.42KB
  108. crash-8.0.5/vmware_vmss.h 4.63KB
  109. crash-8.0.5/x86.c 161.36KB
  110. crash-8.0.5/x86_64.c 276.81KB
  111. crash-8.0.5/xen_dom0.c 6.63KB
  112. crash-8.0.5/xen_dom0.h 2.11KB
  113. crash-8.0.5/xen_hyper.c 63.33KB
  114. crash-8.0.5/xen_hyper_command.c 45.67KB
  115. crash-8.0.5/xen_hyper_defs.h 29.78KB
  116. crash-8.0.5/xen_hyper_dump_tables.c 37.75KB
  117. crash-8.0.5/xen_hyper_global_data.c 13.54KB
  118. crash-8.0.5/xendump.c 75.94KB
  119. crash-8.0.5/xendump.h 4.98KB
0评论
提交 加载更多评论
其他资源 关于numpy的简单操作
关于numpy的简单操作
JAVA画图形学程序(论文+源代码).zip
这是“JAVA 画图形学程序(论文+源代码)”,仅供学习参考,请勿商用。
JAVA画图形学程序(论文+源代码).zip
AXI-LITE读写FIFO教程
详细内容请参考AXI总线篇的文章
packinglanhu
packinglanhu
可易文件名或文件夹名批量提取器
可易文件名或文件夹名批量提取器是一个可以批量提取文件或文件夹相关信息的软件,例如可以自定义设置提取名称、后缀、完整目录、创建时间,最后修改时间,最后访问时间等,通过自定义设置好这些需要提取的信息后,可以指定一键导出到EXCEL\TXT\WORD等文件中保存起来,提取的内容直观、清晰,适合有这方面要求的用户使用。可以大大提高工作效率和减少一些不必要的重复工作。
可易文件夹批量生成器软件
可易文件夹批量生成器软件是一个可以从EXCEL中导入内容批量生成文件夹,也可以自定义设置一些规则名称并批量生成文件夹的软件,它可以组合多种名称规则并批量生成我们所需要的文件夹,可以自定义指定输出目录,一键把已经批量生成的文件夹保存到我们输出和目录中,非常适合有这方面要求的办公人员或电脑操作人员。
可易文件/文件夹批量重命名软件
可易文件,文件夹批量重命名软件可以对文件和文件夹进行大批量重命名,改名,同时也可以批量修改文件和文件夹的创建时间和最后修改时间,可以根据自定义规则进行重命名。软件内分为4个功能:文件批量重命名,文件夹批量重命名,文件批量修改创建时间和最后修改时间,文件夹批量修改创建时间和最后修改时间,支持任何类型的文件和文件夹操作
VBE行号显示插件压缩包资源
http://mtj-k.no.coocan.jp/software/office_vb6/addlinenumbers_vba_x64.html