Yonghong Song
6b0a249a30
bpf: Implement link_query for bpf iterators
...
This patch implemented bpf_link callback functions
show_fdinfo and fill_link_info to support link_query
interface.
The general interface for show_fdinfo and fill_link_info
will print/fill the target_name. Each targets can
register show_fdinfo and fill_link_info callbacks
to print/fill more target specific information.
For example, the below is a fdinfo result for a bpf
task iterator.
$ cat /proc/1749/fdinfo/7
pos: 0
flags: 02000000
mnt_id: 14
link_type: iter
link_id: 11
prog_tag: 990e1f8152f7e54f
prog_id: 59
target_name: task
Signed-off-by: Yonghong Song <yhs@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Link: https://lore.kernel.org/bpf/20200821184418.574122-1-yhs@fb.com
2020-08-21 14:01:39 -07:00
..
2020-07-23 09:35:36 +02:00
2020-07-15 20:34:11 -07:00
2020-05-28 11:22:14 +02:00
2020-07-29 20:09:18 +02:00
2020-07-21 22:05:32 -07:00
2020-06-15 16:03:38 +01:00
2020-08-12 10:57:59 -07:00
2020-07-13 17:01:44 -07:00
2020-07-21 11:21:44 -04:00
2020-08-12 10:58:00 -07:00
2020-06-26 10:36:30 +02:00
2020-06-26 10:37:11 +02:00
2020-07-25 07:38:21 -06:00
2020-07-08 16:16:19 +02:00
2020-08-21 14:01:39 -07:00
2020-07-27 12:55:37 +02:00
2020-07-27 12:55:43 +02:00
2020-07-19 20:14:42 +02:00
2020-06-17 00:07:38 +02:00
2020-07-09 13:15:30 -07:00
2020-08-12 10:57:59 -07:00
2020-07-19 19:20:22 -07:00
2020-07-10 13:54:00 -07:00
2020-07-10 13:54:00 -07:00
2020-07-27 23:24:00 +02:00
2020-06-24 21:34:11 +02:00
2020-06-05 16:19:28 -07:00
2020-07-06 21:37:08 -07:00
2020-05-28 22:09:47 -04:00
2020-06-05 20:19:20 +02:00
2020-07-12 10:22:01 +02:00
2020-07-27 12:20:40 -07:00
2020-07-23 17:55:20 +00:00
2020-07-19 19:20:22 -07:00
2020-07-24 17:12:41 -07:00
2020-08-05 19:02:07 +05:30
2020-07-14 13:46:43 -07:00
2020-07-31 18:49:16 -07:00
2020-07-13 15:32:56 -07:00
2020-07-24 17:12:41 -07:00
2020-07-19 19:20:22 -07:00
2020-07-09 12:38:41 -07:00
2020-06-30 12:06:49 -07:00
2020-07-24 12:53:31 -06:00
2020-06-30 11:49:21 +02:00
2020-07-27 16:34:12 +03:00
2020-07-15 13:27:34 -04:00
2020-08-03 14:19:13 -04:00
2020-05-27 11:10:05 +02:00
2020-08-12 10:57:59 -07:00
2020-07-19 18:05:49 -07:00
2020-07-09 12:38:41 -07:00
2020-07-14 13:46:42 -07:00
2020-07-25 19:34:47 -06:00
2020-06-24 14:36:33 -07:00
2020-07-13 17:20:49 -04:00
2020-07-13 17:52:46 -04:00
2020-07-31 09:27:02 +02:00
2020-08-03 15:17:48 -07:00
2020-08-03 14:51:09 -07:00
2020-07-24 15:23:31 -07:00
2020-06-29 17:08:28 -07:00
2020-07-19 19:22:56 -07:00
2020-07-10 14:50:51 +02:00
2020-06-25 16:26:25 -07:00
2020-08-04 20:16:37 -07:00
2020-07-02 14:19:15 -07:00
2020-07-14 16:29:42 -07:00
2020-08-03 17:57:40 -07:00
2020-07-06 14:06:08 +02:00
2020-07-17 12:54:30 -07:00
2020-06-02 19:45:12 -07:00
2020-07-28 22:25:30 -04:00
2020-07-31 17:00:44 -07:00
2020-07-07 15:55:21 +02:00
2020-08-12 10:57:59 -07:00
2020-07-10 13:45:32 +02:00
2020-07-10 13:45:32 +02:00
2020-06-03 11:27:43 +02:00
2020-06-18 13:07:13 -06:00
2020-08-05 18:39:18 -04:00
2020-08-05 18:39:18 -04:00
2020-07-19 08:13:24 +02:00
2020-08-05 09:30:19 -04:00
2020-08-05 09:30:20 -04:00
2020-08-05 11:08:39 -04:00
2020-08-03 16:11:42 -04:00
2020-08-05 11:08:39 -04:00
2020-08-05 11:08:39 -04:00
2020-08-05 11:08:39 -04:00
2020-08-05 11:08:40 -04:00
2020-06-04 15:36:52 -04:00
2020-08-05 11:08:40 -04:00
2020-08-05 11:08:40 -04:00
2020-08-05 11:08:40 -04:00
2020-08-05 11:08:41 -04:00
2020-08-05 11:08:40 -04:00
2020-06-02 02:45:13 -04:00
2020-08-05 11:08:40 -04:00
2020-07-31 09:24:23 +02:00
2020-06-12 13:23:34 -04:00
2020-07-13 15:32:56 -07:00
2020-06-24 07:51:01 +02:00