📄 bugs
字号:
BUG REPORTSPlease read this file before sending in a bug report or patch.Also, PLEASE read the documentation first. 90% of the mail I getcomplaining about procps is due to the sender not having read thedocumentation!Where to send=============Send comments, bug reports, patches, etc., to albert@users.sf.netWhat to send============It is much more useful to me if a program really crashes to recompile itwith make "CFLAGS=-ggdb -O", run it with "gdb prog" and "run" and sendme a stack trace ('bt' command). That said, any bug report is stillbetter than none.strace and ltrace output are very helpful: strace -o output-file ps --blah bzip2 output-fileI also like "ps --info" output, even if there isn't a ps problem.Kernel-Dependent Patches========================If you send me patches which are specific to *running* with a particularkernel version of /proc, please condition them with the runtime determinedvariable 'linux_version_code' from libproc/version.c. It is the samenumber as the macro LINUX_VERSION_CODE for which the kernel /proc fscode was compiled.A macro is provide in libproc/version.h to construct the code from itscomponents, e.g. if (linux_version_code < LINUX_VERSION(2,5,41)) /* blah blah blah */A startup call to set_linux_version may also be necessary.Of course, if a bug is due to a change in kernel file formats, it wouldbe best to first try to generalize the parsing, since the code is thenmore resilient against future change.Also unified diffs (diff -u) are my preference, context diffs (diff -c )are kind of usable, and standard diffs (diff) are more useless than ageneric text description of what you did. Just use diff -Naurd oldfile newfileor diff -Naurd old-procps-dir new-procps-dirto create your diffs and you will make me happy. Also make sure toinclude a description of what the diff is for or I'm likely to ignoreit because of general lack of time...It might be nice to get rid of miscellaneous compiler warnings, butdon't bend over backwards to do it.Code Structure==============A goal is to encapsulate *all* parsing dependent on /procfile formats into the libproc library. If the API is general enoughit can hopefully stabilize and then /proc changes might only requireupdating libproc.so. Beyond that having the set of utilities be simplecommand lines parsers and output formatters and encapsulating all kerneldivergence in libproc is the way to go.Hence if you are submitting a new program or are fixing an old one, keepin mind that adding files to libproc which encapsulate such things ismore desirable than patching the actual driver program. (well, exceptto move it toward the API of the library).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -