annotate.c (32dcd021d004038ca12ac17319da5aa4756e9312) annotate.c (6484d2f9dc3ecbf13f07100f7f771d1d779eda04)
1// SPDX-License-Identifier: GPL-2.0
2#include "../browser.h"
3#include "../helpline.h"
4#include "../ui.h"
5#include "../util.h"
6#include "../../util/annotate.h"
7#include "../../util/hist.h"
8#include "../../util/sort.h"

--- 408 unchanged lines hidden (view full) ---

417 if (!dl->ops.target.sym) {
418 ui_helpline__puts("The called function was not found.");
419 return true;
420 }
421
422 notes = symbol__annotation(dl->ops.target.sym);
423 pthread_mutex_lock(&notes->lock);
424
1// SPDX-License-Identifier: GPL-2.0
2#include "../browser.h"
3#include "../helpline.h"
4#include "../ui.h"
5#include "../util.h"
6#include "../../util/annotate.h"
7#include "../../util/hist.h"
8#include "../../util/sort.h"

--- 408 unchanged lines hidden (view full) ---

417 if (!dl->ops.target.sym) {
418 ui_helpline__puts("The called function was not found.");
419 return true;
420 }
421
422 notes = symbol__annotation(dl->ops.target.sym);
423 pthread_mutex_lock(&notes->lock);
424
425 if (!symbol__hists(dl->ops.target.sym, evsel->evlist->nr_entries)) {
425 if (!symbol__hists(dl->ops.target.sym, evsel->evlist->core.nr_entries)) {
426 pthread_mutex_unlock(&notes->lock);
427 ui__warning("Not enough memory for annotating '%s' symbol!\n",
428 dl->ops.target.sym->name);
429 return true;
430 }
431
432 pthread_mutex_unlock(&notes->lock);
433 symbol__tui_annotate(dl->ops.target.sym, ms->map, evsel, hbt, browser->opts);

--- 512 unchanged lines hidden ---
426 pthread_mutex_unlock(&notes->lock);
427 ui__warning("Not enough memory for annotating '%s' symbol!\n",
428 dl->ops.target.sym->name);
429 return true;
430 }
431
432 pthread_mutex_unlock(&notes->lock);
433 symbol__tui_annotate(dl->ops.target.sym, ms->map, evsel, hbt, browser->opts);

--- 512 unchanged lines hidden ---