crash list usage example

    科技2022-07-11  79

    crash list usage example

    crash> skbuff_head_cache skbuff_head_cache = $2 = (struct kmem_cache *) 0xffff9371faf8b180 crash> struct kmem_cache struct kmem_cache {     struct kmem_cache_cpu *cpu_slab;     slab_flags_t flags;     unsigned long min_partial;     unsigned int size;     unsigned int object_size;     unsigned int offset;     unsigned int cpu_partial;     struct kmem_cache_order_objects oo;     struct kmem_cache_order_objects max;     struct kmem_cache_order_objects min;     gfp_t allocflags;     int refcount;     void (*ctor)(void *);     unsigned int inuse;     unsigned int align;     unsigned int red_left_pad;     const char *name;     struct list_head list;     struct kobject kobj;     struct work_struct kobj_remove_work;     struct memcg_cache_params memcg_params;     unsigned int max_attr_size;     struct kset *memcg_kset;     unsigned long random;     unsigned int remote_node_defrag_ratio;     unsigned int *random_seq;     unsigned int useroffset;     unsigned int usersize;     struct kmem_cache_node *node[1024]; } SIZE: 8536 crash> list kmem_cache.list -s kmem_cache.name -h 0xffff9371faf8b180 ffff9371faf8b180   name = 0xffffffffb1186524 "skbuff_head_cache" ffff9371faf89200   name = 0xffffffffb10f0ab2 "file_lock_cache" ffff9371faf8aa00

    ...

    Processed: 0.016, SQL: 8