Home
last modified time | relevance | path

Searched refs:struct (Results 1 – 25 of 94) sorted by relevance

1234

/tools/lib/perf/Documentation/
Dlibperf.txt38 struct perf_cpu_map;
40 struct perf_cpu_map *perf_cpu_map__new_any_cpu(void);
41 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
42 struct perf_cpu_map *perf_cpu_map__read(FILE *file);
43 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
44 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
45 struct perf_cpu_map *other);
46 void perf_cpu_map__put(struct perf_cpu_map *map);
47 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
48 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
[all …]
/tools/power/cpupower/bindings/python/
Draw_pylibcpupower.swg50 struct cpufreq_policy {
56 struct cpufreq_available_governors {
58 struct cpufreq_available_governors *next;
59 struct cpufreq_available_governors *first;
62 struct cpufreq_available_frequencies {
64 struct cpufreq_available_frequencies *next;
65 struct cpufreq_available_frequencies *first;
69 struct cpufreq_affected_cpus {
71 struct cpufreq_affected_cpus *next;
72 struct cpufreq_affected_cpus *first;
[all …]
/tools/testing/selftests/tpm2/
Dtpm2.py6 import struct
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.pack(fmt,
[all …]
/tools/perf/Documentation/
Dperf.data-file-format.txt19 struct perf_header {
23 struct perf_file_section attrs;
24 struct perf_file_section data;
25 struct perf_file_section event_types;
39 struct perf_file_section {
53 struct perf_header_string {
60 struct perf_header_string_list {
62 struct perf_header_string strings[nr]; /* variable length records */
81 struct build_id_event {
82 struct perf_event_header header;
[all …]
Dperf-dlfilter.txt35 struct perf_dlfilter_fns perf_dlfilter_fns;
39 int filter_event(void *data, const struct perf_dlfilter_sample *sample, void *ctx);
40 int filter_event_early(void *data, const struct perf_dlfilter_sample *sample, void *ctx);
70 Do not assume data referenced by pointers in struct perf_dlfilter_sample
83 struct perf_dlfilter_sample {
112 const struct perf_branch_entry *brstack; /* Refer <linux/perf_event.h> */
131 static inline bool have_machine_pid(const struct perf_dlfilter_sample *sample)
134 return sample->size >= offsetof(struct perf_dlfilter_sample, vcpu) + sizeof(sample->vcpu);
150 struct perf_dlfilter_fns {
151 const struct perf_dlfilter_al *(*resolve_ip)(void *ctx);
[all …]
/tools/net/sunrpc/xdrgen/templates/C/pointer/declaration/
Dclose.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
4 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *value);
/tools/net/sunrpc/xdrgen/templates/C/struct/declaration/
Dclose.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
4 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *value);
/tools/net/sunrpc/xdrgen/templates/C/union/definition/
Dclose.j26 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
7 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *ptr);
/tools/net/sunrpc/xdrgen/templates/C/struct/decoder/
Dopen.j24 /* struct {{ name }} */
11 xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr)
/tools/net/sunrpc/xdrgen/templates/C/struct/encoder/
Dopen.j24 /* struct {{ name }} */
11 xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *value)
/tools/perf/scripts/python/
Dexport-to-postgresql.py17 import struct
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, symb…
1028 value = struct.pack(fmt, 2, 4, branch_type, n, name)
[all …]
/tools/net/sunrpc/xdrgen/templates/C/typedef/declaration/
Dbasic.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, {{ name }} *ptr);
5 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const {{ name }} *value);
7 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const {{ name }} value);
Dvariable_length_string.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, {{ classifier }}{{ name }} *ptr);
4 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const {{ classifier }}{{ name }} value);
Dvariable_length_array.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, {{ classifier }}{{ name }} *ptr);
4 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const {{ classifier }}{{ name }} value);
Dfixed_length_array.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, {{ classifier }}{{ name }} *ptr);
4 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const {{ classifier }}{{ name }} value);
/tools/bpf/bpftool/Documentation/
Dbpftool-gen.rst61 structure as valid libbpf types (e.g., **struct bpf_map** pointer) and can
65 provides a storage for BPF links (**struct bpf_link**) for each BPF program
68 user in pre-allocated fields in skeleton struct. For BPF programs that
118 BPF link and assign it to corresponding fields in skeleton struct.
202 struct { int x; } data = {};
205 int handle_sys_enter(struct pt_regs *ctx)
223 struct {
231 int handle_sys_exit(struct pt_regs *ctx)
260 struct bpf_testmod_ops testmod_map = {
294 struct example {
[all …]
/tools/net/sunrpc/xdrgen/templates/C/program/encoder/
Dargument.j26 static void {{ program }}_xdr_enc_{{ argument }}(struct rpc_rqst *req,
7 struct xdr_stream *xdr, const void *data)
12 const struct {{ argument }} *args = data;
Dresult.j212 bool {{ program }}_svc_encode_{{ result }}(struct svc_rqst *rqstp, struct xdr_stream *xdr)
17 struct {{ result }} *resp = rqstp->rq_resp;
/tools/net/ynl/
Dynl-gen-c.py1026 struct = self.pure_nested_structs.pop(name)
1027 self.pure_nested_structs[name] = struct
1077 for attr_set, struct in reversed(self.pure_nested_structs.items()):
1081 struct.child_nests.add(child_name)
1085 struct.child_nests.update(child.child_nests)
1086 child.request |= struct.request
1087 child.reply |= struct.reply
1088 if attr_set in struct.child_nests:
1089 struct.recursive = True
1094 for _, struct in self.pure_nested_structs.items():
[all …]
/tools/net/sunrpc/xdrgen/templates/C/program/decoder/
Dresult.j26 static int {{ program }}_xdr_dec_{{ result }}(struct rpc_rqst *req,
7 struct xdr_stream *xdr, void *data)
12 struct {{ result }} *result = data;
Dargument.j212 bool {{ program }}_svc_decode_{{ argument }}(struct svc_rqst *rqstp, struct xdr_stream *xdr)
17 struct {{ argument }} *argp = rqstp->rq_argp;
/tools/net/sunrpc/xdrgen/templates/C/struct/definition/
Dopen.j24 /* struct {{ name }} */
6 struct {{ name }} {
/tools/net/sunrpc/xdrgen/templates/C/program/declaration/
Dresult.j22 bool {{ program }}_svc_encode_{{ result }}(struct svc_rqst *rqstp, struct xdr_stream *xdr);
Dargument.j22 bool {{ program }}_svc_decode_{{ argument }}(struct svc_rqst *rqstp, struct xdr_stream *xdr);
/tools/net/sunrpc/xdrgen/templates/C/enum/declaration/
Dclose.j23 bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, enum {{ name }} *ptr);
4 bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, enum {{ name }} value);

1234