perf tools: Include sys/param.h where needed

As it is going away from util.h, where it is not needed.

This is mostly for things like MAXPATHLEN, MAX() and MIN(), these later
two probably should go away in favor of its kernel sources replacements.

Link: http://lkml.kernel.org/n/tip-z1666f3fl3fqobxvjr5o2r39@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 56e2e056
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/stringify.h> #include <linux/stringify.h>
#include <asm/bug.h> #include <asm/bug.h>
#include <sys/param.h>
#include "util.h" #include "util.h"
#include "debug.h" #include "debug.h"
#include "builtin.h" #include "builtin.h"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <signal.h> #include <signal.h>
#include <sys/param.h>
#include "sane_ctype.h" #include "sane_ctype.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <stdio.h> #include <stdio.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <sys/param.h>
#include "../perf.h" #include "../perf.h"
#include "util.h" #include "util.h"
#include <subcmd/exec-cmd.h> #include <subcmd/exec-cmd.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/param.h>
#include "parse-events.h" #include "parse-events.h"
#include "evlist.h" #include "evlist.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* *
*/ */
#include <errno.h> #include <errno.h>
#include <sys/param.h>
#include "util.h" #include "util.h"
#include "cache.h" #include "cache.h"
#include <subcmd/exec-cmd.h> #include <subcmd/exec-cmd.h>
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <inttypes.h> #include <inttypes.h>
#include "util.h" #include "util.h"
#include "string2.h" #include "string2.h"
#include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <byteswap.h> #include <byteswap.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "ui/progress.h" #include "ui/progress.h"
#include <errno.h> #include <errno.h>
#include <math.h> #include <math.h>
#include <sys/param.h>
static bool hists__filter_entry_by_dso(struct hists *hists, static bool hists__filter_entry_by_dso(struct hists *hists,
struct hist_entry *he); struct hist_entry *he);
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <sys/param.h>
#include "term.h" #include "term.h"
#include "../perf.h" #include "../perf.h"
#include "evlist.h" #include "evlist.h"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <assert.h> #include <assert.h>
#include <sys/wait.h> #include <sys/wait.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment