#ifndef __PERF_TESTS__HISTS_COMMON_H__
#define __PERF_TESTS__HISTS_COMMON_H__

struct machine;
struct machines;

#define FAKE_PID_PERF1  100
#define FAKE_PID_PERF2  200
#define FAKE_PID_BASH   300

#define FAKE_MAP_PERF    0x400000
#define FAKE_MAP_BASH    0x400000
#define FAKE_MAP_LIBC    0x500000
#define FAKE_MAP_KERNEL  0xf00000
#define FAKE_MAP_LENGTH  0x100000

#define FAKE_SYM_OFFSET1  700
#define FAKE_SYM_OFFSET2  800
#define FAKE_SYM_OFFSET3  900
#define FAKE_SYM_LENGTH   100

#define FAKE_IP_PERF_MAIN  FAKE_MAP_PERF + FAKE_SYM_OFFSET1
#define FAKE_IP_PERF_RUN_COMMAND  FAKE_MAP_PERF + FAKE_SYM_OFFSET2
#define FAKE_IP_PERF_CMD_RECORD  FAKE_MAP_PERF + FAKE_SYM_OFFSET3
#define FAKE_IP_BASH_MAIN  FAKE_MAP_BASH + FAKE_SYM_OFFSET1
#define FAKE_IP_BASH_XMALLOC  FAKE_MAP_BASH + FAKE_SYM_OFFSET2
#define FAKE_IP_BASH_XFREE  FAKE_MAP_BASH + FAKE_SYM_OFFSET3
#define FAKE_IP_LIBC_MALLOC  FAKE_MAP_LIBC + FAKE_SYM_OFFSET1
#define FAKE_IP_LIBC_FREE  FAKE_MAP_LIBC + FAKE_SYM_OFFSET2
#define FAKE_IP_LIBC_REALLOC  FAKE_MAP_LIBC + FAKE_SYM_OFFSET3
#define FAKE_IP_KERNEL_SCHEDULE  FAKE_MAP_KERNEL + FAKE_SYM_OFFSET1
#define FAKE_IP_KERNEL_PAGE_FAULT  FAKE_MAP_KERNEL + FAKE_SYM_OFFSET2
#define FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN  FAKE_MAP_KERNEL + FAKE_SYM_OFFSET3

/*
 * The setup_fake_machine() provides a test environment which consists
 * of 3 processes that have 3 mappings and in turn, have 3 symbols
 * respectively.  See below table:
 *
 * Command:  Pid  Shared Object               Symbol
 * .............  .............  ...................
 *    perf:  100           perf  main
 *    perf:  100           perf  run_command
 *    perf:  100           perf  cmd_record
 *    perf:  100           libc  malloc
 *    perf:  100           libc  free
 *    perf:  100           libc  realloc
 *    perf:  100       [kernel]  schedule
 *    perf:  100       [kernel]  page_fault
 *    perf:  100       [kernel]  sys_perf_event_open
 *    perf:  200           perf  main
 *    perf:  200           perf  run_command
 *    perf:  200           perf  cmd_record
 *    perf:  200           libc  malloc
 *    perf:  200           libc  free
 *    perf:  200           libc  realloc
 *    perf:  200       [kernel]  schedule
 *    perf:  200       [kernel]  page_fault
 *    perf:  200       [kernel]  sys_perf_event_open
 *    bash:  300           bash  main
 *    bash:  300           bash  xmalloc
 *    bash:  300           bash  xfree
 *    bash:  300           libc  malloc
 *    bash:  300           libc  free
 *    bash:  300           libc  realloc
 *    bash:  300       [kernel]  schedule
 *    bash:  300       [kernel]  page_fault
 *    bash:  300       [kernel]  sys_perf_event_open
 */
struct machine *setup_fake_machine(struct machines *machines);

void print_hists_in(struct hists *hists);
void print_hists_out(struct hists *hists);

#endif /* __PERF_TESTS__HISTS_COMMON_H__ */
/cgit.cgi/linux/net-next.git/commit/sound/soc?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>soc</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/tegra?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>tegra</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/tegra/Makefile?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>Makefile</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='04d8a0a5f3b6887543850d991a5e37c4ec90e250'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Raju Lakkaraju &lt;Raju.Lakkaraju@microsemi.com&gt;</td><td class='right'>2017-02-07 19:10:26 +0530</td></tr>
<tr><th>committer</th><td>David S. Miller &lt;davem@davemloft.net&gt;</td><td class='right'>2017-02-08 13:29:04 -0500</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/tegra/Makefile?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>04d8a0a5f3b6887543850d991a5e37c4ec90e250</a> (<a href='/cgit.cgi/linux/net-next.git/patch/sound/soc/tegra/Makefile?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>ee1fafb2122c2b29c7cb19e571bd7229afdbf847</a> /<a href='/cgit.cgi/linux/net-next.git/tree/sound/soc/tegra/Makefile?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>sound/soc/tegra/Makefile</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/soc/tegra/Makefile?id=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>ff4cf0e5ce952488074aa7f47734af1794f55fbc</a> (<a href='/cgit.cgi/linux/net-next.git/diff/sound/soc/tegra/Makefile?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&amp;id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>diff</a>)</td></tr></table>
<div class='commit-subject'>net: phy: Add LED mode driver for Microsemi PHYs.</div><div class='commit-msg'>LED Mode:
Microsemi PHY support 2 LEDs (LED[0] and LED[1]) to display different
status information that can be selected by setting LED mode.

LED Mode parameter (vsc8531, led-0-mode) and (vsc8531, led-1-mode) get
from Device Tree.

Signed-off-by: Raju Lakkaraju &lt;Raju.Lakkaraju@microsemi.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>Diffstat</a> (limited to 'sound/soc/tegra/Makefile')</div><table summary='diffstat' class='diffstat'>