Motr  M0
kem.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2019-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_SCRIPTS_SYSTEMTAP_KEM_KEM_H__
26 #define __MOTR_SCRIPTS_SYSTEMTAP_KEM_KEM_H__
27 
28 #include <linux/types.h>
29 
37 #define KEMD_DEV_NAME "kemd"
38 
39 enum ke_type {
42 };
43 
44 struct pf_event {
45  pid_t pfe_pid;
46  pid_t pfe_tgid;
47  unsigned long long pfe_rdtsc_call;
48  unsigned long long pfe_rdtsc_ret;
49  unsigned long pfe_address;
50  unsigned int pfe_write_access;
51  int pfe_fault;
52 };
53 
54 struct cs_event {
55  pid_t cse_prev_pid;
57  pid_t cse_next_pid;
59  unsigned long long cse_rdtsc;
60 };
61 
62 struct ke_data {
63  unsigned int ked_type;
64  union {
65  struct pf_event ked_pf;
66  struct cs_event ked_cs;
67  } u;
68 };
69 
70 struct ke_msg {
71  struct timeval kem_timestamp;
72  struct ke_data kem_data;
73 };
74 
77 #endif /* __MOTR_SCRIPTS_SYSTEMTAP_KEM_KEM_H__ */
78 
79 /*
80  * Local variables:
81  * c-indentation-style: "K&R"
82  * c-basic-offset: 8
83  * tab-width: 8
84  * fill-column: 80
85  * scroll-step: 1
86  * End:
87  */
88 /*
89  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
90  */
unsigned long long pfe_rdtsc_call
Definition: kem.h:47
unsigned long long cse_rdtsc
Definition: kem.h:59
Definition: kem.h:62
pid_t cse_prev_pid
Definition: kem.h:55
unsigned int ked_type
Definition: kem.h:63
unsigned long long pfe_rdtsc_ret
Definition: kem.h:48
pid_t cse_next_pid
Definition: kem.h:57
ke_type
Definition: kem.h:39
int pfe_fault
Definition: kem.h:51
Definition: kem.h:44
pid_t pfe_pid
Definition: kem.h:45
pid_t cse_next_tgid
Definition: kem.h:58
Definition: kem.h:70
unsigned long pfe_address
Definition: kem.h:49
unsigned int pfe_write_access
Definition: kem.h:50
struct timeval kem_timestamp
Definition: kem.h:71
struct pf_event ked_pf
Definition: kem.h:65
pid_t pfe_tgid
Definition: kem.h:46
struct cs_event ked_cs
Definition: kem.h:66
struct ke_data kem_data
Definition: kem.h:72
pid_t cse_prev_tgid
Definition: kem.h:56
Definition: kem.h:54
union ke_data::@474 u