Re: [RFC] [PATCH 5/6] Dump maple tree offset variables by help -o

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022/09/20 0:10, Tao Liu wrote:
> In the previous patch, a few variables are added to offset_table and
> size_table, we need to print it out with help cmd.
> 
> Signed-off-by: Tao Liu <ltao@xxxxxxxxxx>
> ---
>   symbols.c | 34 ++++++++++++++++++++++++++++++++++
>   1 file changed, 34 insertions(+)
> 
> diff --git a/symbols.c b/symbols.c
> index 42c4eb4..44a4bf9 100644
> --- a/symbols.c
> +++ b/symbols.c
> @@ -10755,6 +10755,38 @@ dump_offset_table(char *spec, ulong makestruct)
>   		OFFSET(sbq_wait_state_wait_cnt));
>   	fprintf(fp, "           sbq_wait_state_wait: %ld\n",
>   		OFFSET(sbq_wait_state_wait));
> +	fprintf(fp, "               mm_struct_mm_mt: %ld\n",
> +		OFFSET(mm_struct_mm_mt));
> +	fprintf(fp, "            maple_tree_ma_root: %ld\n",
> +		OFFSET(maple_tree_ma_root));
> +	fprintf(fp, "           maple_tree_ma_flags: %ld\n",
> +		OFFSET(maple_tree_ma_flags));
> +	fprintf(fp, "             maple_node_parent: %ld\n",
> +		OFFSET(maple_node_parent));
> +	fprintf(fp, "               maple_node_ma64: %ld\n",
> +		OFFSET(maple_node_ma64));
> +	fprintf(fp, "               maple_node_mr64: %ld\n",
> +		OFFSET(maple_node_mr64));
> +	fprintf(fp, "               maple_node_slot: %ld\n",
> +		OFFSET(maple_node_slot));
> +	fprintf(fp, "        maple_arange_64_parent: %ld\n",
> +		OFFSET(maple_arange_64_parent));
> +	fprintf(fp, "         maple_arange_64_pivot: %ld\n",
> +		OFFSET(maple_arange_64_pivot));
> +	fprintf(fp, "          maple_arange_64_slot: %ld\n",
> +		OFFSET(maple_arange_64_slot));
> +	fprintf(fp, "          maple_arange_64_meta: %ld\n",
> +		OFFSET(maple_arange_64_meta));
> +	fprintf(fp, "         maple_range_64_parent: %ld\n",
> +		OFFSET(maple_range_64_parent));
> +	fprintf(fp, "          maple_range_64_pivot: %ld\n",
> +		OFFSET(maple_range_64_pivot));
> +	fprintf(fp, "           maple_range_64_slot: %ld\n",
> +		OFFSET(maple_range_64_slot));
> +	fprintf(fp, "           maple_range_64_meta: %ld\n",
> +		OFFSET(maple_range_64_meta));
> +	fprintf(fp, "            maple_metadata_end: %ld\n",
> +		OFFSET(maple_metadata_end));

It's ok to not fold these lines, that would be more readable.

Thanks,
Kazu

>   
>   	fprintf(fp, "\n                    size_table:\n");
>   	fprintf(fp, "                          page: %ld\n", SIZE(page));
> @@ -11027,6 +11059,8 @@ dump_offset_table(char *spec, ulong makestruct)
>   	fprintf(fp, "                 sbitmap_queue: %ld\n", SIZE(sbitmap_queue));
>   	fprintf(fp, "                sbq_wait_state: %ld\n", SIZE(sbq_wait_state));
>   	fprintf(fp, "                   blk_mq_tags: %ld\n", SIZE(blk_mq_tags));
> +	fprintf(fp, "             maple_tree_struct: %ld\n", SIZE(maple_tree_struct));
> +	fprintf(fp, "             maple_node_struct: %ld\n", SIZE(maple_node_struct));
>   
>           fprintf(fp, "\n                   array_table:\n");
>   	/*
--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux