Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 1 | Demonstrations of trace. |
| 2 | |
| 3 | |
| 4 | trace probes functions you specify and displays trace messages if a particular |
ShelbyFrances | 69abacc | 2017-02-08 05:56:53 +0300 | [diff] [blame] | 5 | condition is met. You can control the message format to display function |
| 6 | arguments and return values. |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 7 | |
| 8 | For example, suppose you want to trace all commands being exec'd across the |
| 9 | system: |
| 10 | |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 11 | # trace 'sys_execve "%s", arg1' |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 12 | PID COMM FUNC - |
| 13 | 4402 bash sys_execve /usr/bin/man |
| 14 | 4411 man sys_execve /usr/local/bin/less |
| 15 | 4411 man sys_execve /usr/bin/less |
| 16 | 4410 man sys_execve /usr/local/bin/nroff |
| 17 | 4410 man sys_execve /usr/bin/nroff |
| 18 | 4409 man sys_execve /usr/local/bin/tbl |
| 19 | 4409 man sys_execve /usr/bin/tbl |
| 20 | 4408 man sys_execve /usr/local/bin/preconv |
| 21 | 4408 man sys_execve /usr/bin/preconv |
| 22 | 4415 nroff sys_execve /usr/bin/locale |
| 23 | 4416 nroff sys_execve /usr/bin/groff |
| 24 | 4418 groff sys_execve /usr/bin/grotty |
| 25 | 4417 groff sys_execve /usr/bin/troff |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 26 | ^C |
| 27 | |
| 28 | The ::sys_execve syntax specifies that you want an entry probe (which is the |
| 29 | default), in a kernel function (which is the default) called sys_execve. Next, |
| 30 | the format string to print is simply "%s", which prints a string. Finally, the |
| 31 | value to print is the first argument to the sys_execve function, which happens |
| 32 | to be the command that is exec'd. The above trace was generated by executing |
| 33 | "man ls" in a separate shell. As you see, man executes a number of additional |
| 34 | programs to finally display the man page. |
| 35 | |
| 36 | Next, suppose you are looking for large reads across the system. Let's trace |
| 37 | the read system call and inspect the third argument, which is the number of |
| 38 | bytes to be read: |
| 39 | |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 40 | # trace 'sys_read (arg3 > 20000) "read %d bytes", arg3' |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 41 | PID COMM FUNC - |
| 42 | 4490 dd sys_read read 1048576 bytes |
| 43 | 4490 dd sys_read read 1048576 bytes |
| 44 | 4490 dd sys_read read 1048576 bytes |
| 45 | 4490 dd sys_read read 1048576 bytes |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 46 | ^C |
| 47 | |
| 48 | During the trace, I executed "dd if=/dev/zero of=/dev/null bs=1M count=4". |
| 49 | The individual reads are visible, with the custom format message printed for |
| 50 | each read. The parenthesized expression "(arg3 > 20000)" is a filter that is |
| 51 | evaluated for each invocation of the probe before printing anything. |
| 52 | |
| 53 | You can also trace user functions. For example, let's simulate the bashreadline |
| 54 | script, which attaches to the readline function in bash and prints its return |
| 55 | value, effectively snooping all bash shell input across the system: |
| 56 | |
| 57 | # trace 'r:bash:readline "%s", retval' |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 58 | PID COMM FUNC - |
| 59 | 2740 bash readline echo hi! |
| 60 | 2740 bash readline man ls |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 61 | ^C |
| 62 | |
| 63 | The special retval keywords stands for the function's return value, and can |
| 64 | be used only in a retprobe, specified by the 'r' prefix. The next component |
| 65 | of the probe is the library that contains the desired function. It's OK to |
| 66 | specify executables too, as long as they can be found in the PATH. Or, you |
| 67 | can specify the full path to the executable (e.g. "/usr/bin/bash"). |
| 68 | |
| 69 | Multiple probes can be combined on the same command line. For example, let's |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 70 | trace failed read and write calls on the libc level, and include a time column: |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 71 | |
| 72 | # trace 'r:c:read ((int)retval < 0) "read failed: %d", retval' \ |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 73 | 'r:c:write ((int)retval < 0) "write failed: %d", retval' -T |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 74 | TIME PID COMM FUNC - |
| 75 | 05:31:57 3388 bash write write failed: -1 |
| 76 | 05:32:00 3388 bash write write failed: -1 |
| 77 | ^C |
| 78 | |
| 79 | Note that the retval variable must be cast to int before comparing to zero. |
| 80 | The reason is that the default type for argN and retval is an unsigned 64-bit |
| 81 | integer, which can never be smaller than 0. |
| 82 | |
Sasha Goldshtein | fd60d55 | 2016-03-01 12:15:34 -0800 | [diff] [blame] | 83 | trace has also some basic support for kernel tracepoints. For example, let's |
| 84 | trace the block:block_rq_complete tracepoint and print out the number of sectors |
| 85 | transferred: |
| 86 | |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 87 | # trace 't:block:block_rq_complete "sectors=%d", args->nr_sector' -T |
Sasha Goldshtein | fd60d55 | 2016-03-01 12:15:34 -0800 | [diff] [blame] | 88 | TIME PID COMM FUNC - |
| 89 | 01:23:51 0 swapper/0 block_rq_complete sectors=8 |
| 90 | 01:23:55 10017 kworker/u64: block_rq_complete sectors=1 |
| 91 | 01:23:55 0 swapper/0 block_rq_complete sectors=8 |
| 92 | ^C |
| 93 | |
Sasha Goldshtein | 376ae5c | 2016-10-04 19:49:57 +0300 | [diff] [blame] | 94 | To discover the tracepoint structure format (which you can refer to as the "args" |
| 95 | pointer variable), use the tplist tool. For example: |
Sasha Goldshtein | fd60d55 | 2016-03-01 12:15:34 -0800 | [diff] [blame] | 96 | |
| 97 | # tplist -v block:block_rq_complete |
| 98 | block:block_rq_complete |
| 99 | dev_t dev; |
| 100 | sector_t sector; |
| 101 | unsigned int nr_sector; |
| 102 | int errors; |
| 103 | char rwbs[8]; |
| 104 | |
Sasha Goldshtein | 376ae5c | 2016-10-04 19:49:57 +0300 | [diff] [blame] | 105 | This output tells you that you can use "args->dev", "args->sector", etc. in your |
Sasha Goldshtein | fd60d55 | 2016-03-01 12:15:34 -0800 | [diff] [blame] | 106 | predicate and trace arguments. |
| 107 | |
Sasha Goldshtein | accd4cf | 2016-10-11 07:56:13 -0700 | [diff] [blame] | 108 | |
| 109 | More and more high-level libraries are instrumented with USDT probe support. |
| 110 | These probes can be traced by trace just like kernel tracepoints. For example, |
Teng Qin | c200b6c | 2017-12-16 00:15:55 -0800 | [diff] [blame] | 111 | trace new threads being created and their function name, include time column |
| 112 | and on which CPU it happened: |
Sasha Goldshtein | accd4cf | 2016-10-11 07:56:13 -0700 | [diff] [blame] | 113 | |
Teng Qin | c200b6c | 2017-12-16 00:15:55 -0800 | [diff] [blame] | 114 | # trace 'u:pthread:pthread_create "%U", arg3' -T -C |
| 115 | TIME CPU PID TID COMM FUNC - |
| 116 | 13:22:01 25 2627 2629 automount pthread_create expire_proc_indirect+0x0 [automount] |
| 117 | 13:22:01 5 21360 21414 osqueryd pthread_create [unknown] [osqueryd] |
| 118 | 13:22:03 25 2627 2629 automount pthread_create expire_proc_indirect+0x0 [automount] |
| 119 | 13:22:04 15 21360 21414 osqueryd pthread_create [unknown] [osqueryd] |
| 120 | 13:22:07 25 2627 2629 automount pthread_create expire_proc_indirect+0x0 [automount] |
| 121 | 13:22:07 4 21360 21414 osqueryd pthread_create [unknown] [osqueryd] |
Sasha Goldshtein | accd4cf | 2016-10-11 07:56:13 -0700 | [diff] [blame] | 122 | ^C |
| 123 | |
| 124 | The "%U" format specifier tells trace to resolve arg3 as a user-space symbol, |
| 125 | if possible. Similarly, use "%K" for kernel symbols. |
| 126 | |
| 127 | Ruby, Node, and OpenJDK are also instrumented with USDT. For example, let's |
| 128 | trace Ruby methods being called (this requires a version of Ruby built with |
| 129 | the --enable-dtrace configure flag): |
| 130 | |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 131 | # trace 'u:ruby:method__entry "%s.%s", arg1, arg2' -p $(pidof irb) -T |
Sasha Goldshtein | accd4cf | 2016-10-11 07:56:13 -0700 | [diff] [blame] | 132 | TIME PID COMM FUNC - |
| 133 | 12:08:43 18420 irb method__entry IRB::Context.verbose? |
| 134 | 12:08:43 18420 irb method__entry RubyLex.ungetc |
| 135 | 12:08:43 18420 irb method__entry RuxyLex.debug? |
| 136 | ^C |
| 137 | |
| 138 | In the previous invocation, arg1 and arg2 are the class name and method name |
| 139 | for the Ruby method being invoked. |
| 140 | |
ShelbyFrances | 86cd535 | 2017-02-08 05:56:37 +0300 | [diff] [blame] | 141 | You can also trace exported functions from shared libraries, or an imported |
| 142 | function on the actual executable: |
| 143 | |
| 144 | # sudo ./trace.py 'r:/usr/lib64/libtinfo.so:curses_version "Version=%s", retval' |
| 145 | # tput -V |
| 146 | |
| 147 | PID TID COMM FUNC - |
| 148 | 21720 21720 tput curses_version Version=ncurses 6.0.20160709 |
| 149 | ^C |
| 150 | |
Sasha Goldshtein | accd4cf | 2016-10-11 07:56:13 -0700 | [diff] [blame] | 151 | |
Sasha Goldshtein | f4797b0 | 2016-10-17 01:44:56 -0700 | [diff] [blame] | 152 | Occasionally, it can be useful to filter specific strings. For example, you |
| 153 | might be interested in open() calls that open a specific file: |
| 154 | |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 155 | # trace 'p:c:open (STRCMP("test.txt", arg1)) "opening %s", arg1' -T |
Sasha Goldshtein | f4797b0 | 2016-10-17 01:44:56 -0700 | [diff] [blame] | 156 | TIME PID COMM FUNC - |
| 157 | 01:43:15 10938 cat open opening test.txt |
| 158 | 01:43:20 10939 cat open opening test.txt |
| 159 | ^C |
| 160 | |
| 161 | |
Sasha Goldshtein | 23e72b8 | 2017-01-17 08:49:36 +0000 | [diff] [blame] | 162 | In the preceding example, as well as in many others, readability may be |
| 163 | improved by providing the function's signature, which names the arguments and |
| 164 | lets you access structure sub-fields, which is hard with the "arg1", "arg2" |
| 165 | convention. For example: |
| 166 | |
| 167 | # trace 'p:c:open(char *filename) "opening %s", filename' |
| 168 | PID TID COMM FUNC - |
| 169 | 17507 17507 cat open opening FAQ.txt |
| 170 | ^C |
| 171 | |
| 172 | # trace 'p::SyS_nanosleep(struct timespec *ts) "sleep for %lld ns", ts->tv_nsec' |
| 173 | PID TID COMM FUNC - |
| 174 | 777 785 automount SyS_nanosleep sleep for 500000000 ns |
| 175 | 777 785 automount SyS_nanosleep sleep for 500000000 ns |
| 176 | 777 785 automount SyS_nanosleep sleep for 500000000 ns |
| 177 | 777 785 automount SyS_nanosleep sleep for 500000000 ns |
| 178 | ^C |
| 179 | |
ShelbyFrances | 69abacc | 2017-02-08 05:56:53 +0300 | [diff] [blame] | 180 | Remember to use the -I argument include the appropriate header file. We didn't |
| 181 | need to do that here because `struct timespec` is used internally by the tool, |
| 182 | so it always includes this header file. |
Sasha Goldshtein | 23e72b8 | 2017-01-17 08:49:36 +0000 | [diff] [blame] | 183 | |
ShelbyFrances | 69abacc | 2017-02-08 05:56:53 +0300 | [diff] [blame] | 184 | |
| 185 | As a final example, let's trace open syscalls for a specific process. By |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 186 | default, tracing is system-wide, but the -p switch overrides this: |
| 187 | |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 188 | # trace -p 2740 'do_sys_open "%s", arg2' -T |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 189 | TIME PID COMM FUNC - |
| 190 | 05:36:16 15872 ls do_sys_open /etc/ld.so.cache |
| 191 | 05:36:16 15872 ls do_sys_open /lib64/libselinux.so.1 |
| 192 | 05:36:16 15872 ls do_sys_open /lib64/libcap.so.2 |
| 193 | 05:36:16 15872 ls do_sys_open /lib64/libacl.so.1 |
| 194 | 05:36:16 15872 ls do_sys_open /lib64/libc.so.6 |
| 195 | 05:36:16 15872 ls do_sys_open /lib64/libpcre.so.1 |
| 196 | 05:36:16 15872 ls do_sys_open /lib64/libdl.so.2 |
| 197 | 05:36:16 15872 ls do_sys_open /lib64/libattr.so.1 |
| 198 | 05:36:16 15872 ls do_sys_open /lib64/libpthread.so.0 |
| 199 | 05:36:16 15872 ls do_sys_open /usr/lib/locale/locale-archive |
| 200 | 05:36:16 15872 ls do_sys_open /home/vagrant |
| 201 | ^C |
| 202 | |
| 203 | In this example, we traced the "ls ~" command as it was opening its shared |
| 204 | libraries and then accessing the /home/vagrant directory listing. |
| 205 | |
| 206 | |
Mark Drayton | 5f5687e | 2017-02-20 18:13:03 +0000 | [diff] [blame] | 207 | Lastly, if a high-frequency event is traced you may overflow the perf ring |
| 208 | buffer. This shows as "Lost N samples": |
| 209 | |
| 210 | # trace sys_open |
| 211 | 5087 5087 pgrep sys_open |
| 212 | 5087 5087 pgrep sys_open |
| 213 | 5087 5087 pgrep sys_open |
| 214 | 5087 5087 pgrep sys_open |
| 215 | 5087 5087 pgrep sys_open |
| 216 | Lost 764896 samples |
| 217 | Lost 764896 samples |
| 218 | Lost 764896 samples |
| 219 | |
| 220 | The perf ring buffer size can be changed with -b. The unit is size per-CPU buffer |
| 221 | size and is measured in pages. The value must be a power of two and defaults to |
| 222 | 64 pages. |
| 223 | |
| 224 | |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 225 | USAGE message: |
| 226 | |
Mark Drayton | 5f5687e | 2017-02-20 18:13:03 +0000 | [diff] [blame] | 227 | usage: trace [-h] [-b BUFFER_PAGES] [-p PID] [-L TID] [-v] [-Z STRING_SIZE] |
| 228 | [-S] [-M MAX_EVENTS] [-t] [-T] [-K] [-U] [-I header] |
Mark Drayton | aa6c916 | 2016-11-03 15:36:29 +0000 | [diff] [blame] | 229 | probe [probe ...] |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 230 | |
| 231 | Attach to functions and print trace messages. |
| 232 | |
| 233 | positional arguments: |
| 234 | probe probe specifier (see examples) |
| 235 | |
| 236 | optional arguments: |
| 237 | -h, --help show this help message and exit |
Mark Drayton | 5f5687e | 2017-02-20 18:13:03 +0000 | [diff] [blame] | 238 | -b BUFFER_PAGES, --buffer-pages BUFFER_PAGES |
| 239 | number of pages to use for perf_events ring buffer |
| 240 | (default: 64) |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 241 | -p PID, --pid PID id of the process to trace (optional) |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 242 | -L TID, --tid TID id of the thread to trace (optional) |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 243 | -v, --verbose print resulting BPF program code before executing |
| 244 | -Z STRING_SIZE, --string-size STRING_SIZE |
| 245 | maximum size to read from strings |
| 246 | -S, --include-self do not filter trace's own pid from the trace |
| 247 | -M MAX_EVENTS, --max-events MAX_EVENTS |
| 248 | number of events to print before quitting |
Sasha Goldshtein | 49d50ba | 2016-12-19 10:17:38 +0000 | [diff] [blame] | 249 | -t, --timestamp print timestamp column (offset from trace start) |
Mark Drayton | 5f5687e | 2017-02-20 18:13:03 +0000 | [diff] [blame] | 250 | -T, --time print time column |
Teng Qin | c200b6c | 2017-12-16 00:15:55 -0800 | [diff] [blame] | 251 | -C, --print_cpu print CPU id |
Sasha Goldshtein | 4725a72 | 2016-10-18 20:54:47 +0300 | [diff] [blame] | 252 | -K, --kernel-stack output kernel stack trace |
| 253 | -U, --user-stack output user stack trace |
| 254 | -I header, --include header |
| 255 | additional header files to include in the BPF program |
Yonghong Song | f4470dc | 2017-12-13 14:12:13 -0800 | [diff] [blame] | 256 | as either full path, or relative to current working directory, |
| 257 | or relative to default kernel header search path |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 258 | |
| 259 | EXAMPLES: |
| 260 | |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 261 | trace do_sys_open |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 262 | Trace the open syscall and print a default trace message when entered |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 263 | trace 'do_sys_open "%s", arg2' |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 264 | Trace the open syscall and print the filename being opened |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 265 | trace 'sys_read (arg3 > 20000) "read %d bytes", arg3' |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 266 | Trace the read syscall and print a message for reads >20000 bytes |
Sasha Goldshtein | 23e72b8 | 2017-01-17 08:49:36 +0000 | [diff] [blame] | 267 | trace 'r::do_sys_open "%llx", retval' |
Mark Drayton | aa6c916 | 2016-11-03 15:36:29 +0000 | [diff] [blame] | 268 | Trace the return from the open syscall and print the return value |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 269 | trace 'c:open (arg2 == 42) "%s %d", arg1, arg2' |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 270 | Trace the open() call from libc only if the flags (arg2) argument is 42 |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 271 | trace 'c:malloc "size = %d", arg1' |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 272 | Trace malloc calls and print the size being allocated |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 273 | trace 'p:c:write (arg1 == 1) "writing %d bytes to STDOUT", arg3' |
| 274 | Trace the write() call from libc to monitor writes to STDOUT |
Mark Drayton | 5f5687e | 2017-02-20 18:13:03 +0000 | [diff] [blame] | 275 | trace 'r::__kmalloc (retval == 0) "kmalloc failed!"' |
Sasha Goldshtein | 8acd015 | 2016-02-22 02:25:03 -0800 | [diff] [blame] | 276 | Trace returns from __kmalloc which returned a null pointer |
Mark Drayton | 5f5687e | 2017-02-20 18:13:03 +0000 | [diff] [blame] | 277 | trace 'r:c:malloc (retval) "allocated = %x", retval' |
Sasha Goldshtein | 38847f0 | 2016-02-22 02:19:24 -0800 | [diff] [blame] | 278 | Trace returns from malloc and print non-NULL allocated buffers |
Sasha Goldshtein | 376ae5c | 2016-10-04 19:49:57 +0300 | [diff] [blame] | 279 | trace 't:block:block_rq_complete "sectors=%d", args->nr_sector' |
Sasha Goldshtein | fd60d55 | 2016-03-01 12:15:34 -0800 | [diff] [blame] | 280 | Trace the block_rq_complete kernel tracepoint and print # of tx sectors |
Sasha Goldshtein | 3e39a08 | 2016-03-24 08:39:47 -0700 | [diff] [blame] | 281 | trace 'u:pthread:pthread_create (arg4 != 0)' |
| 282 | Trace the USDT probe pthread_create when its 4th argument is non-zero |
Sasha Goldshtein | 23e72b8 | 2017-01-17 08:49:36 +0000 | [diff] [blame] | 283 | trace 'p::SyS_nanosleep(struct timespec *ts) "sleep for %lld ns", ts->tv_nsec' |
| 284 | Trace the nanosleep syscall and print the sleep duration in ns |
Yonghong Song | f4470dc | 2017-12-13 14:12:13 -0800 | [diff] [blame] | 285 | trace -I 'linux/fs.h' \ |
| 286 | 'p::uprobe_register(struct inode *inode) "a_ops = %llx", inode->i_mapping->a_ops' |
| 287 | Trace the uprobe_register inode mapping ops, and the symbol can be found |
| 288 | in /proc/kallsyms |
| 289 | trace -I 'kernel/sched/sched.h' \ |
| 290 | 'p::__account_cfs_rq_runtime(struct cfs_rq *cfs_rq) "%d", cfs_rq->runtime_remaining' |
| 291 | Trace the cfs scheduling runqueue remaining runtime. The struct cfs_rq is defined |
| 292 | in kernel/sched/sched.h which is in kernel source tree and not in kernel-devel |
| 293 | package. So this command needs to run at the kernel source tree root directory |
| 294 | so that the added header file can be found by the compiler. |