probe-file.c (68cf16c6b8b4ed818bb6211e1975fd75b78c7e86) probe-file.c (36a009fe07bdecd201335f982babb8af34b603e2)
1/*
2 * probe-file.c : operate ftrace k/uprobe events files
3 *
4 * Written by Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

542{
543 struct probe_cache_entry *entry = NULL;
544 char *cmd = synthesize_perf_probe_command(pev);
545
546 if (!cmd)
547 return NULL;
548
549 list_for_each_entry(entry, &pcache->entries, node) {
1/*
2 * probe-file.c : operate ftrace k/uprobe events files
3 *
4 * Written by Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

542{
543 struct probe_cache_entry *entry = NULL;
544 char *cmd = synthesize_perf_probe_command(pev);
545
546 if (!cmd)
547 return NULL;
548
549 list_for_each_entry(entry, &pcache->entries, node) {
550 if (pev->sdt) {
551 if (entry->pev.event &&
552 streql(entry->pev.event, pev->event) &&
553 (!pev->group ||
554 streql(entry->pev.group, pev->group)))
555 goto found;
556
557 continue;
558 }
550 /* Hit if same event name or same command-string */
551 if ((pev->event &&
552 (streql(entry->pev.group, pev->group) &&
553 streql(entry->pev.event, pev->event))) ||
554 (!strcmp(entry->spev, cmd)))
555 goto found;
556 }
557 entry = NULL;

--- 265 unchanged lines hidden ---
559 /* Hit if same event name or same command-string */
560 if ((pev->event &&
561 (streql(entry->pev.group, pev->group) &&
562 streql(entry->pev.event, pev->event))) ||
563 (!strcmp(entry->spev, cmd)))
564 goto found;
565 }
566 entry = NULL;

--- 265 unchanged lines hidden ---