Alexei Starovoitov
ffeedafbf0
bpf: introduce current->pid, tgid, uid, gid, comm accessors
...
eBPF programs attached to kprobes need to filter based on
current->pid, uid and other fields, so introduce helper functions:
u64 bpf_get_current_pid_tgid(void)
Return: current->tgid << 32 | current->pid
u64 bpf_get_current_uid_gid(void)
Return: current_gid << 32 | current_uid
bpf_get_current_comm(char *buf, int size_of_buf)
stores current->comm into buf
They can be used from the programs attached to TC as well to classify packets
based on current task fields.
Update tracex2 example to print histogram of write syscalls for each process
instead of aggregated for all.
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-06-15 15:53:50 -07:00
..
2015-05-26 14:03:45 +03:00
2015-04-22 18:33:48 +03:00
2015-04-22 09:24:55 -07:00
2015-04-22 18:33:43 +03:00
2015-04-24 09:49:37 -07:00
2015-03-29 16:17:10 +01:00
2015-05-09 14:59:05 -07:00
2015-04-26 13:36:02 -07:00
2015-05-30 23:35:34 -07:00
2015-06-11 15:55:25 -07:00
2015-04-24 09:49:37 -07:00
2015-03-27 10:37:38 -07:00
2015-06-15 20:19:20 +02:00
2015-04-04 13:26:52 -04:00
2015-04-13 20:08:38 +02:00
2015-04-04 12:47:04 -04:00
2015-04-04 12:52:06 -04:00
2015-05-08 11:22:30 -07:00
2015-04-06 17:46:27 +02:00
2015-04-22 08:00:41 +10:00
2015-04-10 19:16:03 +01:00
2015-05-08 11:53:55 +02:00
2015-04-15 09:00:47 -07:00
2015-04-23 15:16:37 -04:00
2015-04-07 11:17:34 +02:00
2015-04-15 16:35:22 -07:00
2015-04-24 08:23:45 -07:00
2015-03-27 13:44:43 +00:00
2015-04-22 08:00:42 +10:00
2015-03-27 11:59:22 -04:00
2015-05-28 10:12:42 -06:00
2015-04-01 17:22:00 +02:00
2015-04-17 09:03:56 -04:00
2015-04-17 09:03:53 -04:00
2015-05-04 13:09:55 -06:00
2015-04-17 08:31:12 -06:00
2015-05-12 17:21:22 -04:00
2015-06-15 15:53:50 -07:00
2015-06-10 23:33:58 -07:00
2015-04-15 16:35:22 -07:00
2015-04-14 16:49:03 -07:00
2015-04-10 17:45:30 -07:00
2015-04-03 08:44:37 +02:00
2015-04-24 08:23:45 -07:00
2015-04-14 16:49:04 -07:00
2015-04-15 16:35:17 -07:00
2015-05-04 17:49:51 +08:00
2015-05-04 17:49:51 +08:00
2015-05-04 17:49:51 +08:00
2015-04-13 10:19:30 +02:00
2015-04-03 13:15:50 +02:00
2015-05-28 11:05:20 +09:30
2015-04-15 16:35:22 -07:00
2015-03-31 21:21:03 +08:00
2015-04-15 15:05:28 -04:00
2015-03-30 17:09:41 +09:00
2015-03-31 12:03:49 -04:00
2015-04-14 20:21:54 -07:00
2015-04-21 14:47:16 +05:30
2015-04-17 23:18:53 +05:30
2015-04-01 12:46:22 +01:00
2015-04-14 16:49:05 -07:00
2015-05-05 19:24:42 -04:00
2015-04-10 15:08:57 -07:00
2015-05-21 17:07:59 -04:00
2015-04-09 11:39:55 -05:00
2015-04-26 17:22:07 -07:00
2015-05-06 23:03:23 -04:00
2015-04-03 23:23:51 +02:00
2015-05-23 01:22:35 -04:00
2015-05-12 14:13:20 +02:00
2015-04-14 09:25:26 -07:00
2015-04-02 18:46:20 +02:00
2015-04-15 16:35:19 -07:00
2015-04-03 16:18:02 +02:00
2015-04-14 20:21:54 -07:00
2015-04-10 21:57:22 -07:00
2015-05-11 10:50:17 -04:00
2015-06-01 16:50:52 -07:00
2015-05-04 14:49:23 -04:00
2015-06-09 15:06:55 +01:00
2015-04-08 23:28:28 +02:00
2015-04-21 09:42:58 -07:00
2015-04-18 12:32:59 -07:00
2015-03-31 15:32:16 +02:00
2015-04-15 16:35:22 -07:00
2015-04-11 11:17:28 +02:00
2015-04-03 12:52:29 -04:00
2015-04-09 09:40:24 +02:00
2015-04-15 16:35:20 -07:00
2015-04-21 09:44:55 -03:00
2015-04-17 09:03:55 -04:00
2015-04-23 16:52:01 +02:00
2015-04-15 16:35:17 -07:00
2015-05-13 10:19:35 +02:00
2015-04-14 13:58:48 -07:00
2015-03-31 09:45:50 -06:00
2015-03-30 11:55:48 -07:00
2015-04-25 16:50:14 -04:00
2015-05-14 22:35:13 -04:00
2015-04-14 16:49:06 -07:00
2015-05-14 17:55:51 -07:00
2015-04-14 16:49:00 -07:00
2015-04-15 16:35:18 -07:00
2015-04-14 16:49:05 -07:00
2015-05-12 10:39:26 -04:00
2015-04-22 09:44:36 -07:00
2015-04-15 16:35:16 -07:00
2015-03-31 12:04:12 +02:00
2015-04-14 10:49:03 -07:00
2015-04-18 11:20:31 -04:00
2015-05-11 10:50:17 -04:00
2015-05-12 18:43:55 -04:00
2015-06-01 14:56:09 -07:00
2015-06-12 14:16:46 +02:00
2015-05-14 01:10:05 -04:00
2015-06-12 14:10:12 +02:00
2015-05-14 01:10:05 -04:00
2015-05-09 22:15:31 -04:00
2015-04-21 16:16:04 -04:00
2015-04-26 17:33:59 -07:00
2015-04-23 14:36:28 -04:00
2015-05-05 17:10:11 -07:00
2015-04-14 16:48:59 -07:00
2015-04-07 19:11:06 -06:00
2015-04-14 19:35:44 -05:00
2015-04-14 19:23:24 -05:00
2015-05-26 19:55:56 -07:00
2015-04-14 16:49:05 -07:00
2015-04-15 16:35:19 -07:00
2015-05-27 14:19:44 -04:00
2015-04-08 16:25:25 -05:00
2015-04-09 14:20:11 -05:00
2015-04-16 13:53:32 -05:00
2015-05-29 07:39:34 +10:00
2015-05-27 08:46:44 +02:00
2015-04-12 21:03:31 +02:00
2015-04-03 15:08:20 -04:00
2015-05-27 00:27:35 -04:00
2015-04-15 16:35:23 -07:00
2015-04-03 23:23:51 +02:00
2015-03-31 12:01:19 -04:00
2015-04-15 16:35:23 -07:00
2015-05-16 18:08:26 -04:00
2015-04-15 16:35:19 -07:00
2015-04-03 08:18:24 +02:00
2015-05-14 01:10:05 -04:00
2015-04-27 15:49:30 +02:00
2015-04-15 09:00:47 -07:00
2015-04-10 14:39:53 +02:00
2015-06-15 14:30:32 -07:00
2015-04-14 16:48:59 -07:00
2015-04-20 09:08:49 -07:00
2015-04-11 15:53:35 -04:00
2015-04-14 09:50:27 -07:00
2015-05-30 17:04:36 -07:00
2015-04-16 19:02:04 -04:00
2015-04-15 16:35:17 -07:00
2015-04-17 09:04:07 -04:00
2015-05-23 01:22:35 -04:00
2015-04-03 08:44:37 +02:00
2015-04-03 08:18:34 +02:00
2015-04-08 09:39:56 -04:00
2015-05-10 19:26:37 +02:00
2015-04-15 16:35:22 -07:00
2015-05-14 17:55:51 -07:00
2015-04-11 22:29:44 -04:00
2015-04-28 12:48:57 +02:00
2015-04-07 12:58:35 -05:00
2015-05-05 17:10:11 -07:00
2015-04-14 18:06:47 -07:00
2015-04-07 11:14:38 -06:00
2015-04-01 14:37:14 +10:30
2015-04-13 21:04:16 +09:30
2015-04-15 12:41:14 +09:30
2015-04-02 17:33:15 +02:00
2015-04-15 16:35:20 -07:00