diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-08-10 06:02:26 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-08-10 06:02:26 -0400 |
| commit | 1ccb2f4e8e435a53bb378e8b092087f091754aa6 (patch) | |
| tree | ba120509947138915e06ad39cca5f065bd99f42f /tools/lib | |
| parent | c3a3800fe46f00ceeeb181cc07cc4fdaed4574f1 (diff) | |
| parent | 9b231d9f47c6114d317ce28cff92a74ad80547f5 (diff) | |
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/lib')
| -rw-r--r-- | tools/lib/bpf/bpf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index 412a7c82995a..e5bbb090bf88 100644 --- a/tools/lib/bpf/bpf.c +++ b/tools/lib/bpf/bpf.c | |||
| @@ -39,6 +39,8 @@ | |||
| 39 | # define __NR_bpf 280 | 39 | # define __NR_bpf 280 |
| 40 | # elif defined(__sparc__) | 40 | # elif defined(__sparc__) |
| 41 | # define __NR_bpf 349 | 41 | # define __NR_bpf 349 |
| 42 | # elif defined(__s390__) | ||
| 43 | # define __NR_bpf 351 | ||
| 42 | # else | 44 | # else |
| 43 | # error __NR_bpf not defined. libbpf does not support your arch. | 45 | # error __NR_bpf not defined. libbpf does not support your arch. |
| 44 | # endif | 46 | # endif |
| @@ -314,7 +316,6 @@ int bpf_obj_get_info_by_fd(int prog_fd, void *info, __u32 *info_len) | |||
| 314 | int err; | 316 | int err; |
| 315 | 317 | ||
| 316 | bzero(&attr, sizeof(attr)); | 318 | bzero(&attr, sizeof(attr)); |
| 317 | bzero(info, *info_len); | ||
| 318 | attr.info.bpf_fd = prog_fd; | 319 | attr.info.bpf_fd = prog_fd; |
| 319 | attr.info.info_len = *info_len; | 320 | attr.info.info_len = *info_len; |
| 320 | attr.info.info = ptr_to_u64(info); | 321 | attr.info.info = ptr_to_u64(info); |
