jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / rtos / linux_header.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #ifndef OPENOCD_RTOS_LINUX_HEADER_H
4 #define OPENOCD_RTOS_LINUX_HEADER_H
5
6 /* gdb script to update the header file
7 according to kernel version and build option
8 before executing function awareness
9 kernel symbol must be loaded : symbol vmlinux
10
11 define awareness
12 set logging off
13 set logging file linux_header.h
14 set logging on
15
16 printf "#define QAT %p\n",&((struct task_struct *)(0))->stack
17 set $a=&((struct list_head *)(0))->next
18 set $a=(int)$a+(int)&((struct task_struct *)(0))->tasks
19 printf "#define NEXT %p\n",$a
20 printf "#define COMM %p\n",&((struct task_struct *)(0))->comm
21 printf "#define MEM %p\n",&((struct task_struct *)(0))->mm
22 printf "#define ONCPU %p\n",&((struct task_struct *)(0))->on_cpu
23 printf "#define PID %p\n",&((struct task_struct *)(0))->pid
24 printf "#define CPU_CONT %p\n",&((struct thread_info *)(0))->cpu_context
25 printf "#define PREEMPT %p\n",&((struct thread_info *)(0))->preempt_count
26 printf "#define MM_CTX %p\n",&((struct mm_struct *)(0))->context
27 end
28 */
29 #define QAT 0x4
30 #define NEXT 0x1b0
31 #define COMM 0x2d4
32 #define MEM 0x1cc
33 #define ONCPU 0x18
34 #define PID 0x1f4
35 #define CPU_CONT 0x1c
36 #define PREEMPT 0x4
37 #define MM_CTX 0x160
38
39 #endif /* OPENOCD_RTOS_LINUX_HEADER_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)