Re: Adding a new command rbtree

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

 



At 2012-5-19 5:04, Dave Anderson wrote:


----- Original Message -----
Hello Dave,

The attachment is the code that adds two command, rbtree and rdtree.  The
commands work well, but, onsidering some code is a copy of command list,
I think the code still need a big change.


Hi Qiao,

I haven't been able to spend much time looking at this patch, but
these are my initial impressions.

My suggestion of a single "tree" command was just that, where there
would be a single "tree" command, and that command would require an
option to make the differentiation between an red-black tree and a
radix tree.

I don't quite understand why you *only* have the "[-o] offset" advertised
for the rbtree command?  Virtually every instance of a radix_tree_root
structure in the kernel is embedded in a data structure, similar to the
typical usage of an rb_root.  Why the difference?

I only considered the address to be the pointer of radix_tree_root or
radix_tree_node. As you said, I will add the pointer to the structure
in which radix_tree_root embedded in. And about other suggestion, I
will accept to modify my patch.


The "-H start" option should probably be something like "-R" for "root".
When -H is used in the list command, it refers to list_[H]ead.

The examples in the help pages are not particularly helpful.
I don't know what "tts.rb" refers to?  Can you find better examples
that the user can relate to?

Also, a clear explanation of what the "position information" actually
means would be helpful.

Thanks,
   Dave

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility




--
--
Regards
Qiao Nuohan



--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility


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

 

Powered by Linux