/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/ |
H A D | tpm2.py | 6 import struct namespace 259 return struct.pack(fmt, self.session_handle, len(self.nonce), 265 return struct.calcsize(fmt) 277 return struct.pack(fmt, len(self.user_auth), self.user_auth, 282 return struct.calcsize(fmt) 310 return struct.pack(self.__fmt(), 321 return struct.calcsize(self.__fmt()) 398 rc = struct.unpack('>I', rsp[6:10])[0] 400 cc = struct.unpack('>I', cmd[6:10])[0] 412 cmd = struct [all...] |
H A D | tpm2_tests.py | 11 import struct namespace 149 cmd = struct.pack(fmt, 151 struct.calcsize(fmt) + 1, 165 cmd = struct.pack(fmt, 167 struct.calcsize(fmt), 172 sz = struct.unpack('>I', hdr[2:6])[0] 182 cmd = struct.pack(fmt, 184 struct.calcsize(fmt), 205 cmd = struct.pack(fmt, 207 struct [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/tpm2/ |
H A D | tpm2.py | 6 import struct namespace 260 return struct.pack(fmt, self.session_handle, len(self.nonce), 266 return struct.calcsize(fmt) 278 return struct.pack(fmt, len(self.user_auth), self.user_auth, 283 return struct.calcsize(fmt) 311 return struct.pack(self.__fmt(), 322 return struct.calcsize(self.__fmt()) 399 rc = struct.unpack('>I', rsp[6:10])[0] 401 cc = struct.unpack('>I', cmd[6:10])[0] 413 cmd = struct [all...] |
H A D | tpm2_tests.py | 11 import struct namespace 162 cmd = struct.pack(fmt, 164 struct.calcsize(fmt) + 1, 178 cmd = struct.pack(fmt, 180 struct.calcsize(fmt), 185 sz = struct.unpack('>I', hdr[2:6])[0] 195 cmd = struct.pack(fmt, 197 struct.calcsize(fmt), 218 cmd = struct.pack(fmt, 220 struct [all...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | export-to-postgresql.py | 17 import struct namespace 732 file_header = struct.pack("!11sii", b"PGCOPY\n\377\r\n\0", 0, 0) 977 value = struct.pack(fmt, 2, 8, evsel_id, n, evsel_name) 984 value = struct.pack(fmt, 3, 8, machine_id, 4, pid, n, root_dir) 988 value = struct.pack("!hiqiqiqiiii", 5, 8, thread_id, 8, machine_id, 8, process_id, 4, pid, 4, tid) 995 value = struct.pack(fmt, 5, 8, comm_id, n, comm_str, 8, thread_id, 8, time, 1, exec_flag) 1000 value = struct.pack(fmt, 3, 8, comm_thread_id, 8, comm_id, 8, thread_id) 1011 value = struct.pack(fmt, 5, 8, dso_id, 8, machine_id, n1, short_name, n2, long_name, n3, build_id) 1018 value = struct.pack(fmt, 6, 8, symbol_id, 8, dso_id, 8, sym_start, 8, sym_end, 4, binding, n, symbol_name) 1025 value = struct [all...] |
H A D | intel-pt-events.py | 17 import struct namespace 36 data = struct.unpack_from("<IQ", raw_buf) 43 data = struct.unpack_from("<BBBBII", raw_buf) 50 data = struct.unpack_from("<IQ", raw_buf) 57 data = struct.unpack_from("<IQ", raw_buf) 66 data = struct.unpack_from("<I", raw_buf) 72 data = struct.unpack_from("<IQ", raw_buf)
|
H A D | export-to-sqlite.py | 17 import struct namespace 719 data = struct.unpack_from("<IQ", raw_buf) 729 data = struct.unpack_from("<BBBBII", raw_buf) 740 data = struct.unpack_from("<IQ", raw_buf) 750 data = struct.unpack_from("<IQ", raw_buf) 762 data = struct.unpack_from("<I", raw_buf) 770 data = struct.unpack_from("<IQ", raw_buf)
|
H A D | mem-phys-addr.py | 11 import struct namespace
|
H A D | event_analyzing_sample.py | 23 import struct namespace
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | export-to-postgresql.py | 17 import struct namespace 735 file_header = struct.pack("!11sii", b"PGCOPY\n\377\r\n\0", 0, 0) 980 value = struct.pack(fmt, 2, 8, evsel_id, n, evsel_name) 987 value = struct.pack(fmt, 3, 8, machine_id, 4, pid, n, root_dir) 991 value = struct.pack("!hiqiqiqiiii", 5, 8, thread_id, 8, machine_id, 8, process_id, 4, pid, 4, tid) 998 value = struct.pack(fmt, 5, 8, comm_id, n, comm_str, 8, thread_id, 8, time, 1, exec_flag) 1003 value = struct.pack(fmt, 3, 8, comm_thread_id, 8, comm_id, 8, thread_id) 1014 value = struct.pack(fmt, 5, 8, dso_id, 8, machine_id, n1, short_name, n2, long_name, n3, build_id) 1021 value = struct.pack(fmt, 6, 8, symbol_id, 8, dso_id, 8, sym_start, 8, sym_end, 4, binding, n, symbol_name) 1028 value = struct [all...] |
H A D | intel-pt-events.py | 19 import struct namespace 139 data = struct.unpack_from("<IQ", raw_buf) 152 data = struct.unpack_from("<BBBBII", raw_buf) 159 data = struct.unpack_from("<IQ", raw_buf) 166 data = struct.unpack_from("<IQ", raw_buf) 175 data = struct.unpack_from("<I", raw_buf) 181 data = struct.unpack_from("<IQ", raw_buf) 190 data = struct.unpack_from("<IQ", raw_buf) 199 data = struct.unpack_from("<BBH", raw_buf) 211 data = struct [all...] |
H A D | export-to-sqlite.py | 17 import struct namespace 722 data = struct.unpack_from("<IQ", raw_buf) 732 data = struct.unpack_from("<BBBBII", raw_buf) 743 data = struct.unpack_from("<IQ", raw_buf) 753 data = struct.unpack_from("<IQ", raw_buf) 765 data = struct.unpack_from("<I", raw_buf) 773 data = struct.unpack_from("<IQ", raw_buf)
|
H A D | mem-phys-addr.py | 11 import struct namespace
|
H A D | event_analyzing_sample.py | 23 import struct namespace
|
/kernel/linux/linux-6.6/tools/net/ynl/ |
H A D | ynl-gen-c.py | 55 self.nested_struct_type = 'struct ' + self.nested_render_name + '_' 57 self.nested_struct_type = 'struct ' + self.nested_render_name 557 local_vars = ['const struct nlattr *attr2;'] 580 local_vars += [f'const struct nlattr *attr_{", *attr_".join(tv_names)};'] 608 self.struct_name = 'struct ' + self.render_name 947 # Dicts are sorted, this will make struct last 948 struct = self.pure_nested_structs.pop(name) 949 self.pure_nested_structs[name] = struct 957 for attr_set, struct in reversed(self.pure_nested_structs.items()): 962 child.request |= struct [all...] |
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/atm/ |
H A D | cxacru-cf.py | 30 import struct namespace 45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
|
/kernel/linux/linux-6.6/Documentation/networking/device_drivers/atm/ |
H A D | cxacru-cf.py | 30 import struct namespace 45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | EventClass.py | 13 import struct namespace 60 flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf) 89 status, dla, dse, lat = struct.unpack('QQQQ', tmp_buf)
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | EventClass.py | 13 import struct namespace 60 flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf) 89 status, dla, dse, lat = struct.unpack('QQQQ', tmp_buf)
|
/kernel/linux/linux-6.6/tools/net/ynl/lib/ |
H A D | ynl.py | 8 import struct namespace 9 from struct import Struct 101 self._len, self._type = struct.unpack("HH", raw[offset:offset + 4]) 191 struct.unpack("IHHII", self.hdr) 200 self.error = struct.unpack("i", self.raw[0:4])[0] 269 nlmsg = struct.pack("HHII", nl_type, nl_flags, seq, 0) 270 genlmsg = struct.pack("BBH", genl_cmd, genl_version, 0) 275 return struct.pack("I", len(msg) + 4) + msg 330 self.genl_cmd, self.genl_version, _ = struct.unpack_from("BBH", nl_msg.raw, 0) 352 nlmsg = struct [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | checkdeclares.pl | 4 # checkdeclares: find struct declared more than once 9 # This script checks for duplicate struct declares. 19 print "Warns of struct declaration duplicates\n"; 36 if (m/^\s*struct\s*(\w*);$/o) { 45 print "$file: struct $structname is declared more than once.\n"; 52 print "No duplicate struct declares found.\n";
|
H A D | export_report.pl | 119 $state = 1 if ($_ =~ /static const struct modversion_info/);
|
/kernel/linux/linux-5.10/scripts/ |
H A D | export_report.pl | 119 $state = 1 if ($_ =~ /static const struct modversion_info/);
|
/kernel/linux/linux-5.10/Documentation/target/ |
H A D | tcm_mod_builder.py | 53 buf += "struct " + fabric_mod_name + "_tpg {\n" 57 buf += " struct " + fabric_mod_name + "_lport *lport;\n" 59 buf += " struct se_portal_group se_tpg;\n" 62 buf += "struct " + fabric_mod_name + "_lport {\n" 68 buf += " struct se_wwn lport_wwn;\n" 97 buf += "struct " + fabric_mod_name + "_tpg {\n" 101 buf += " struct " + fabric_mod_name + "_tport *tport;\n" 103 buf += " struct se_portal_group se_tpg;\n" 105 buf += "struct " + fabric_mod_name + "_tport {\n" 111 buf += " struct se_ww [all...] |
/kernel/linux/linux-5.10/scripts/gdb/linux/ |
H A D | proc.py | 19 from struct import * 134 mount_type = utils.CachedType("struct mount") 244 "(const struct fdt_header *) initial_boot_params")
|