⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bugs

📁 Linux下进程监控相关源代码
💻
字号:
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 procps-bugs@redhat.comWhat to send============It is much more useful to me if a program really crases to recompile itwith make "CC=gcc -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.It might be nice to get rid of miscellaneous compiler warnings, butdon't bend over backwards to do it.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/kvers.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(1,1,30))     /* tty field is only a minor */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.If you send me patches which are specific to *compiling* on a particularversion of Linux include a "#if LINUX_VERSION_CODE > 1*0x10000+3*0x100+54"markup of the patch so that the package may be compiled with olderkernels as well as the "latest and greatest".  LINUX_VERSION_CODE is#define'd in <linux/version.h>.Note that you should not make patches specific to *compiling* on aparticular version of Linux unless there is nothing else you can do.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 -u oldfile newfileor	diff -Naur 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...Code Structure==============My ultimate goal for this package is to be compilable with any kernelheaders and to be able to run under any kernel's /proc.  (Don't bothertelling me that I'm not especially close to my ultimate goal... whois? :-)Anyhow, another 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 + -