prog.c (07fa3fa2572f2dee85beb8137f90ccf33d7206af) | prog.c (a8bfd2bc29f3bf35c7b588b102662375b0184475) |
---|---|
1/* 2 * Copyright (C) 2017-2018 Netronome Systems, Inc. 3 * 4 * This software is dual licensed under the GNU General License Version 2, 5 * June 1991 as shown in the file COPYING in the top-level directory of this 6 * source tree or the BSD 2-Clause License provided below. You have the 7 * option to license this software under the complete terms of either license. 8 * --- 343 unchanged lines hidden (view full) --- 352 free(memlock); 353 354 if (info->nr_map_ids) 355 show_prog_maps(fd, info->nr_map_ids); 356 357 if (!hash_empty(prog_table.table)) { 358 struct pinned_obj *obj; 359 | 1/* 2 * Copyright (C) 2017-2018 Netronome Systems, Inc. 3 * 4 * This software is dual licensed under the GNU General License Version 2, 5 * June 1991 as shown in the file COPYING in the top-level directory of this 6 * source tree or the BSD 2-Clause License provided below. You have the 7 * option to license this software under the complete terms of either license. 8 * --- 343 unchanged lines hidden (view full) --- 352 free(memlock); 353 354 if (info->nr_map_ids) 355 show_prog_maps(fd, info->nr_map_ids); 356 357 if (!hash_empty(prog_table.table)) { 358 struct pinned_obj *obj; 359 |
360 printf("\n"); | |
361 hash_for_each_possible(prog_table.table, obj, hash, info->id) { 362 if (obj->id == info->id) | 360 hash_for_each_possible(prog_table.table, obj, hash, info->id) { 361 if (obj->id == info->id) |
363 printf("\tpinned %s\n", obj->path); | 362 printf("\n\tpinned %s", obj->path); |
364 } 365 } 366 367 printf("\n"); 368} 369 370static int show_prog(int fd) 371{ --- 707 unchanged lines hidden --- | 363 } 364 } 365 366 printf("\n"); 367} 368 369static int show_prog(int fd) 370{ --- 707 unchanged lines hidden --- |