diff options
| author | Cheng-Han Wu <hank20010209@gmail.com> | 2026-05-03 18:14:29 +0800 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-05-15 08:48:28 -0600 |
| commit | e27108800bb8a8be08300ce14d532f7225e4c50f (patch) | |
| tree | 1d93268bbab1891aec23ea67cb14e92263071628 | |
| parent | 7fb658ede0404e8dac52bb196bc0457c5db03f19 (diff) | |
| download | lwn-e27108800bb8a8be08300ce14d532f7225e4c50f.tar.gz lwn-e27108800bb8a8be08300ce14d532f7225e4c50f.zip | |
docs: admin-guide: add IGNORE_DIRS example for cscope
The workload tracing guide shows how to build a cscope database by
running cscope command directly. The kernel build system also provides
a cscope target, which supports IGNORE_DIRS for excluding directories
from the generated database.
Mention make cscope and show how to exclude Documentation/ as an example.
Signed-off-by: Cheng-Han Wu <hank20010209@gmail.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260503101429.254394-5-hank20010209@gmail.com>
| -rw-r--r-- | Documentation/admin-guide/workload-tracing.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/admin-guide/workload-tracing.rst b/Documentation/admin-guide/workload-tracing.rst index c49c2a00a8b8..314e5f03474e 100644 --- a/Documentation/admin-guide/workload-tracing.rst +++ b/Documentation/admin-guide/workload-tracing.rst @@ -202,6 +202,15 @@ database. To get out of this mode press ctrl+d. -p option is used to specify the number of file path components to display. -p10 is optimal for browsing kernel sources. +Alternatively, the kernel build system can generate the cscope database:: + + make cscope + +To exclude directories from the generated database, pass IGNORE_DIRS to +the cscope target. For example, to exclude Documentation/, run:: + + make IGNORE_DIRS="Documentation" cscope + What is perf and how do we use it? ================================== |
