parse-events.c (4299a549979783668d787959d61ba22b6b200877) | parse-events.c (cf38fadade52df937521dd70d4437df1a9354cd9) |
---|---|
1 2#include "parse-events.h" 3#include "evsel.h" 4#include "evlist.h" 5#include "fs.h" 6#include <lk/debugfs.h> 7#include "tests.h" 8#include <linux/hw_breakpoint.h> --- 1442 unchanged lines hidden (view full) --- 1451 1452static int test_pmu(void) 1453{ 1454 struct stat st; 1455 char path[PATH_MAX]; 1456 int ret; 1457 1458 snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", | 1 2#include "parse-events.h" 3#include "evsel.h" 4#include "evlist.h" 5#include "fs.h" 6#include <lk/debugfs.h> 7#include "tests.h" 8#include <linux/hw_breakpoint.h> --- 1442 unchanged lines hidden (view full) --- 1451 1452static int test_pmu(void) 1453{ 1454 struct stat st; 1455 char path[PATH_MAX]; 1456 int ret; 1457 1458 snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", |
1459 sysfs_find_mountpoint()); | 1459 sysfs__mountpoint()); |
1460 1461 ret = stat(path, &st); 1462 if (ret) 1463 pr_debug("omitting PMU cpu tests\n"); 1464 return !ret; 1465} 1466 1467static int test_pmu_events(void) 1468{ 1469 struct stat st; 1470 char path[PATH_MAX]; 1471 struct dirent *ent; 1472 DIR *dir; 1473 int ret; 1474 1475 snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", | 1460 1461 ret = stat(path, &st); 1462 if (ret) 1463 pr_debug("omitting PMU cpu tests\n"); 1464 return !ret; 1465} 1466 1467static int test_pmu_events(void) 1468{ 1469 struct stat st; 1470 char path[PATH_MAX]; 1471 struct dirent *ent; 1472 DIR *dir; 1473 int ret; 1474 1475 snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", |
1476 sysfs_find_mountpoint()); | 1476 sysfs__mountpoint()); |
1477 1478 ret = stat(path, &st); 1479 if (ret) { 1480 pr_debug("omitting PMU cpu events tests\n"); 1481 return 0; 1482 } 1483 1484 dir = opendir(path); --- 55 unchanged lines hidden --- | 1477 1478 ret = stat(path, &st); 1479 if (ret) { 1480 pr_debug("omitting PMU cpu events tests\n"); 1481 return 0; 1482 } 1483 1484 dir = opendir(path); --- 55 unchanged lines hidden --- |