builtin-top.c (9974f496782b7612e36a143bedda858f1cb953d4) | builtin-top.c (6cfcc53ed4f3ecb9319e73a03f34f1eddcb644dd) |
---|---|
1/* 2 * builtin-top.c 3 * 4 * Builtin top command: Display a continuously updated profile of 5 * any workload, CPU or specific PID. 6 * 7 * Copyright (C) 2008, Red Hat Inc, Ingo Molnar <mingo@redhat.com> 8 * --- 350 unchanged lines hidden (view full) --- 359{ 360 struct rb_node *node; 361 struct symbol *sym; 362 363 kernel_dso = dso__new("[kernel]", sizeof(struct sym_entry)); 364 if (kernel_dso == NULL) 365 return -1; 366 | 1/* 2 * builtin-top.c 3 * 4 * Builtin top command: Display a continuously updated profile of 5 * any workload, CPU or specific PID. 6 * 7 * Copyright (C) 2008, Red Hat Inc, Ingo Molnar <mingo@redhat.com> 8 * --- 350 unchanged lines hidden (view full) --- 359{ 360 struct rb_node *node; 361 struct symbol *sym; 362 363 kernel_dso = dso__new("[kernel]", sizeof(struct sym_entry)); 364 if (kernel_dso == NULL) 365 return -1; 366 |
367 if (dso__load_kernel(kernel_dso, NULL, symbol_filter, 1) <= 0) | 367 if (dso__load_kernel(kernel_dso, NULL, symbol_filter, 1, 0) <= 0) |
368 goto out_delete_dso; 369 370 node = rb_first(&kernel_dso->syms); 371 sym = rb_entry(node, struct symbol, rb_node); 372 min_ip = sym->start; 373 374 node = rb_last(&kernel_dso->syms); 375 sym = rb_entry(node, struct symbol, rb_node); --- 381 unchanged lines hidden --- | 368 goto out_delete_dso; 369 370 node = rb_first(&kernel_dso->syms); 371 sym = rb_entry(node, struct symbol, rb_node); 372 min_ip = sym->start; 373 374 node = rb_last(&kernel_dso->syms); 375 sym = rb_entry(node, struct symbol, rb_node); --- 381 unchanged lines hidden --- |